-
Notifications
You must be signed in to change notification settings - Fork 25
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. |
@praveek Thank you for your help! I am not sure if this issue can be closed right now, as the underlying problem remains. We will try out the workarounds you suggested and leave it open to you whether to close this issue or leave it open until the configurable timeout happens. Have a nice day and all the best! |
@praveek Unfortunately we are not able to follow your blog post until the very end.
Where do we find this "mobile property environment ID"? We have tried pasting the id from the URL after opening the corresponding property environment, but this always opens an empty website with "Not found". |
It is the appID you provide to the |
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: