Closed SD10 closed 4 months ago
Hello @SD10, thank you for reaching out, and sorry for the late response - from your description and the related issues, we could be missing some connectivity handling when you call identify
. Let me discuss this with the team and get back to you once we have a better understanding of the issue.
Our team experiences that as well. Are there any updates?
Hello @SD10 and @taraspasichnyk, thank you for reaching out.
We are still investigating, but have not yet determined the best course of action.
Ideally, the API would both lend itself to correct usage and also allow differentiation between a successful identify and a timeout. Also, we may need additional handling that allows us to notice when a condition is likely not going to recover in a timely manner.
We will provide an update, either in guidance for an alternate way to use the API or as an SDK update, when we can.
There's now a startWaitSeconds
parameter, and the completion
block has a timedOut
parameter as well. So presumably this can be closed?
Same issue here at Riverside...
@louis-launchdarkly any update on this?
In the recently released v9.4.0, we introduced a new identify
method which accepts a timeout interval. If an identify request does not complete within that time frame, the provided callback will be triggered with a result value of .timeout
.
Describe the bug The
identify
method ofLDClient
never invokes itscompletion
block parameter in situations of poor connectivity that cause the underlying network requests to failTo reproduce
LDClient.identify
method and provide acompletion
blockExpected behavior The
identify
method should call itscompletion
handler after a specified timeout and cause theprint
to be executed.Logs
SDK version 5.4.5
Language version, developer tools Xcode 13, Swift 5
OS/platform iOS 15
Additional context The LDClient documentation states:
and
This makes it dangerous to block user progression in the application using the
identify
method since it will never timeout in the case of network connectivity issues or issues with the Launch Darkly service.timeout
parameter to theidentify
method to would help mitigate this issuecompletion
handler such as a boolean flag indicating whether thecompletion
handler is being invoked in the scenario of success or failure would be very useful for error handling as wellRelated issues: #211, #209
Thank you 🙏