-
Notifications
You must be signed in to change notification settings - Fork 178
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
AUTH_KEY_DUPLICATED after running for a while #733
Comments
Have you tried |
@fastndead yes. |
okay, got it! Well, I can only say that in my case i caught 406 because two instances of my application were connected at the same time with the same One solution I can think of is issuing a separate fresh single-use Sort of like having one |
@fastndead I made sure that there are no 2 instances of the same client running at the same time. That would make sense. Logging in for every new client instance might be a good fallback, but without knowing the original root cause I wouldn't trust to get my original sessions not to get duplicated as well. Unfortunately there are more breaking issues with this library:
|
I'm trying to periodically rotate a few Gramjs clients. If I create a client and call
destroy
immediately after completing a request, after a few cycles I start to getAUTH_KEY_DUPLICATED
errors.This would be a pseudocode example:
This code will start producing AUTH_KEY_DUPLICATED errors after a few loops
The text was updated successfully, but these errors were encountered: