vss-web-extension-sdk icon indicating copy to clipboard operation
vss-web-extension-sdk copied to clipboard

executeServiceEndpointRequest TFS.WebApi.Exception: Size of the POST body exceeds the size limit of 2048 bytes.

Open rorezende opened this issue 6 years ago • 1 comments

The API executeServiceEndpointRequest (ServiceEndpointHttpClient) currently supports around 4K query string for requestVerb=GET but it supports only a 2K body for POST requests.

Got the following exception type: TFS.WebApi.Exception and message "Size of the POST body exceeds the size limit of 2048 bytes."

Repro: have a "ms.vss-endpoint.endpoint-types" such that the dataSource requestVerb is POST and the body > 2048.

Scenario: Currently consuming a service using GET requests, which recently learned it limits query strings to 4K (Azure Functions) Now, to handle such limitation, I'm switching from GET to POST since AF supports much larger bodies.

Surprisingly, VSTS Api restricts more POST than GET, at least when using the endpoint proxy.

My request is to increase the limit for the body size. I believe Azure Functions supports a request length of 100K.

rorezende avatar Jan 23 '19 09:01 rorezende

We have increased the limit to 100k and this fix should be deployed in a week.

omeshp avatar Feb 14 '19 14:02 omeshp