If an API request times out, there is a method for increasing the timeout threshold.
What is happening is that the total round trip time of the API request is being exceeded. The full API request time comprises the time for the request to leave the device and travel to our service, the internal service processing time, and the time for the request to be returned.
1. Increase your timeout threshold (code snippet below)
2. Ensure your app is located closest to the majority of your users
3. Check the duration field of successful requests; if it is high, let us know
https://getstream.io/contact/support/
// client-side you initialize the Chat client with your API key
const chatClient = StreamChat.getInstance('dn4mpr346fns', {
timeout: 6000,
});
Comments
0 comments
Please sign in to leave a comment.