Closed maciejtrybilo closed 3 years ago
Hi @maciejtrybilo thanks for reporting this. We will investigate if this is out of line for our Throttler behavior.
Filed internally as 102007
Hi @maciejtrybilo,
Thanks for reporting this issue, it should be fixed as of the 5.4.1 release. Please give it a try to verify the issue is resolved. I'll close this issue for now, but feel free to reopen or file a new issue if you continue to experience difficulties with the patch release.
Thanks, @gwhelanLD
Describe the bug
I'm noticing problems with identifying users. Upon launch we always identify an anonymous user with custom flags and then if the user is logged in, or if the user subsequently logs in, we identify the user with LD. However the second request fails to show up in the debugger page and the user isn't identified.
I believe this is due to the faulty behaviour of your throttler.
The
Throttler
class setsrunAttempts
to 1 after the first try. ThenrunAttempts
will not be cleared until another run is attempted which will always be dropped and only thenrunAttempts
will be reset to0
after a delay. So, the third attempt will succeed, but then the fourth will always be dropped and so on.If I disable throttling, the SDK behaves as expected.
Expected behavior
runAttempts
should be reset eventually after the first attempt.SDK version 5.4.0
Language version, developer tools Xcode 12.4
OS/platform iOS simulator