Skip to content
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

Too many provider token updates #226

Closed
andrewtimberlake opened this issue Aug 16, 2022 · 1 comment · Fixed by #227
Closed

Too many provider token updates #226

andrewtimberlake opened this issue Aug 16, 2022 · 1 comment · Fixed by #227

Comments

@andrewtimberlake
Copy link
Contributor

I’m getting an error response: :too_many_provider_token_updates

The code here shows that token is refreshed every minute instead of “no more than once every 20 minutes” as the APNS documentation requires.

@token_max_age 3_590

Documentation extract

Status code Error string Description
429 TooManyProviderTokenUpdates The provider’s authentication token is being updated too often. Update the authentication token no more than once every 20 minutes.

I’d be happy to submit a pull request to help.

@andrewtimberlake
Copy link
Contributor Author

Sorry, there is an obvious mistake in my bug report, 3_590 is just less than one hour 🤦‍♂️ so that’s not the problem.
The problem seems to be that multiple workers should all be using the same token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant