-
-
Notifications
You must be signed in to change notification settings - Fork 842
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
Question: TooManyProviderTokenUpdates from APNS #512
Comments
Hi @Tillman-Z !
Can you please describe your task? Why are you sending a lot of pushes to one device token? |
Thanks for your quick response @slimus! |
Sorry, I copied incorrect info :( |
This is a production system and it's sending out about 1 push per second. |
Thank you for information. |
Thanks so much for your fast responses! Best, |
Hey, According to apple's documentation, the token needs to be refreshed every 59m (but no more than every 20m). The call to
And this seems to be the case here. I have not found other bits of code messing with this client (but once again, I don't know how to Go); so I'm guessing the role of refreshing the client is left to the So my guess for your bug is that (assuming you only have one auth key), every 50 minutes(ish) your 5 gorush instances try to refresh the same token, resulting in the error you're seeing. I guess fixing this for multiple instance would require gorush to either share the token among instances, or to be able to control the token refresh behavior within apns2. |
Good thinking...but no ;-) |
Hi there!
I just have witnessed the TooManyProviderTokenUpdates error response from APNS.
This would indicate that the derived key (which should be renewed every 20-59mins as far as I understand Apple's recommendation) would be renewed too quickly.
Is this a config error on my part or is this an issue with GoRush?
Best,
Tillman
The text was updated successfully, but these errors were encountered: