Skip to main content

Following Redirects in SDKs

· 2 min read

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 CodesBehavior
301-303Request is repeated but with the GET method. Request body will be dropped, if any. This matches the current behavior of the web browsers.*
307-308Request 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 was PUT or DELETE.
  • C# SDK will not change the HTTP method to GET on 301-303 redirects, if the original method was PUT or DELETE.
  • PHP SDK will not change the HTTP method to GET on 301-303 redirects, if the original method was PUT or DELETE.

We're exploring options to fix these issues. Please submit a ticket if you run into them.