We've fixed an issue in SDKs where HTTP redirections were not being handled properly. Please generate new SDKs to receive the fixes.
Details
Java, Node.js and Ruby SDKs will now follow HTTP redirects properly.
The table below describes what the expected behavior is:
Status Codes | Behavior |
---|---|
301-303 | Request is repeated but with the GET method. Request body will be dropped, if any. This matches the current behavior of the web browsers.* |
307-308 | Request is repeated with the original method and body. |
* Requests with HEAD
method are repeated without change.
SDKs with Pending Issues
We are still looking at how to overcome the limitations of the underlying HTTP client to fix this issue in C#, PHP and Python.
- Python SDK will not change the HTTP method to
GET
on 301 redirects, if the original method wasPUT
orDELETE
. - C# SDK will not change the HTTP method to
GET
on 301-303 redirects, if the original method wasPUT
orDELETE
. - PHP SDK will not change the HTTP method to
GET
on 301-303 redirects, if the original method wasPUT
orDELETE
.
We're exploring options to fix these issues. Please submit a ticket if you run into them.