-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeouts on Identity.appendVisitorInfoForURL #727
Comments
@Faltenreich Currently, there’s no way to increase the timeout interval. This timeout is set shorter than others, as the API is usually called early in the app lifecycle and needs to respond quickly. We’ve observed timeouts during the first install when the SDK downloads the remote configuration first before generating the ECID and responding to the call. As a workaround, consider bundling a configuration file with the app as mentioned in this blog post. This ensures the ECID and visitor information are generated even during first launch, reducing the likelihood of a timeout. If you still encounter timeouts, consider implementing a custom retry mechanism in your app by calling the API multiple times. |
@praveek Thank you for your quick response and your suggestions!
I do not understand how a timeout correlates with faster response times. If I understand correctly, the timeout simply sets the timeframe in which the client (we) is waiting for a response from the SDK (you) or rather from your (remote?) backend. If that timeframe is exceeded, the SDK is not waiting anymore and returns an error, which is the case we are running into. In that case, increasing the timeout sounds like a valid option to me. Would you consider that for a future update? |
Yes, a shorter timeout doesn’t necessarily mean a faster response. Instead, it ensures that if a request takes too long, the app gets a timeout error, allowing it to trigger a fallback rather than waiting indefinitely for the response. Ideally, having a configurable timeout would be the best solution, but we need to ensure it works consistently across all APIs, which we’re actively tracking. In the meantime, you can try the workarounds I mentioned earlier. |
We are experiencing timeouts on calling Identity.appendVisitorInfoForURL. Most requests work fine but we would like to reduce those few hundreds issues every day.
We notice a timeout interval of 500ms for
Identity.appendVisitorInfoForURL
. This sounds very short and may be the cause of our problem. Is there any option to increase this timeout interval?Expected Behaviour
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: