Large Rally queries result in error: Bad Message 431 - Request Header Fields Too Large
search cancel

Large Rally queries result in error: Bad Message 431 - Request Header Fields Too Large

book

Article ID: 231647

calendar_today

Updated On:

Products

CA Agile Central SaaS (Rally)

Issue/Introduction

Large Rally queries result in the following error:

Bad Message 431 - Request Header Fields Too Large

Cause

For security reasons, Rally limits the header size to 8000 bytes.  This includes the request parameters as well as any data in the cookies.

Resolution

Reduce the number of parameters in the URL, and/or reduce the size of the API query.

 

Alternatively, you can restructure your request to use a "POST as GET" request.

1) Set your method to POST

2) Add a URL query parameter as follows:

https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?_method=GET

3) Set Content-Type=application/x-www-form-urlencoded

4) Instead of adding your parameters to the URL you will now add them to the body similar to the example below:

fetch=TestFolder%2CDisplayColor%2CDefects%2CTestCase%2CRequirement%2CReady%2CToDo%2CDirectChildrenCount%2CRelease%2CParent%2CName%2CBlocked%2CScheduleStatePrefix%2CTaskIndex%2CTasks%2CTestSet%2CState%2CTestCases%2CPlanEstimate%2COwner%2CFormattedID%2CProject%2CScheduleState%2CPortfolioItem%2CIteration%2CWorkProduct%2CDragAndDropRank%2CChildren%2Csum%3A%5BTaskRemainingTotal%2CPlanEstimate%5D&query=(FormattedID%20=%20US1)&start=1&pagesize=25&order=DragAndDropRank%20ASC&projectScopeUp=false&projectScopeDown=true

 

Example below: