You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebClient sends a transfer-encoding: chunked header for all requests which confuses some servers and cause a timeout. The spec says that for some request methods like GET, HEAD, DELETE, the request body, even if present, should be ignored, so for all practical purposes, there is no body. Thus it doesn't make sense to add a transfer-encoding: chunked. See this exact same bug raised and fixed for NodeJS: nodejs/node-v0.x-archive#6185.
As for our case, Pinterest API chokes on this. Here's a sample curl statement, where the access_token has been replaced with a fake one for obvious reasons.
The workaround for this is to set the header to null before making the request, which removes it from the header map. Needless to say, the workaround is ugly and shouldn't be required in the first place.
Abhijit Sarkar opened SPR-15947 and commented
Using 5.0.0.BUILD-SNAPSHOT, not RC3.
The
WebClient
sends atransfer-encoding: chunked
header for all requests which confuses some servers and cause a timeout. The spec says that for some request methods like GET, HEAD, DELETE, the request body, even if present, should be ignored, so for all practical purposes, there is no body. Thus it doesn't make sense to add atransfer-encoding: chunked
. See this exact same bug raised and fixed for NodeJS: nodejs/node-v0.x-archive#6185.As for our case, Pinterest API chokes on this. Here's a sample
curl
statement, where theaccess_token
has been replaced with a fake one for obvious reasons.The workaround for this is to set the header to null before making the request, which removes it from the header map. Needless to say, the workaround is ugly and shouldn't be required in the first place.
Affects: 5.0 RC3
Issue Links:
The text was updated successfully, but these errors were encountered: