You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using pushy library.
The well-used version is "0.13.1"
We upgraded the library version to "0.14.1" and distributed the service.
Perform normal operation without any issues in the initial post-deployment
However, responses to "TooManyProviderTokenUpdates" messages are piling up on the log about "1hour and 40 minutes" later.
Internally, it is expected that a continuous update of the JWT token file will occur at some point.
( Version 0.13.1 does not produce a TooManyProviderTokenUpdates response)
I looked up the 'Apple Developer Forum' on "TooManyProviderTokenUpdates" responses, I checked the token policy below.
The authentication token for the provider is being updated too often.
For security reasons, APNS needs to refresh tokens regularly. Refresh tokens once every 20 to 60 minutes.
APNS rejects all requests that contain timestamps older than 1 hour in the token.
Similarly, if you recreate the token more than once every 20 minutes, the APN reports an error.
My service environment is apps connection from 3 nodes through http proxy server.
One process is generating ApsClient as a singleton pattern.
-- node-1 (one process)
-- node-2 (one process) <-> http proxy <-> APNS
-- node-3 (one process)
CurrentConnection number was given 3.
Below is the ApsClient generation code.
Push Message lost due to continuous TooManyProviderTokenUpdates response.
As a result, we proceeded with the library rollback. 0.14.1 -> 0.13.1
Does anyone have the same symptoms as me?
What is the cause and what is the problem?
The text was updated successfully, but these errors were encountered:
It's not clear to me how either of those changes could lead to too many token updates.
I think we're going to need a little more information to understand what's going wrong. Could you try setting the log level for TokenAuthenticationApnsClientHandler to debug? That will tell us how often tokens are changing from Pushy's perspective. We're looking for this line:
I'm going to close this issue for now because we don't have enough information to do meaningful debugging. @kangjd81 if you have an opportunity to provide more information, I'll happily reopen the issue. Thanks kindly!
I am using pushy library.
The well-used version is "0.13.1"
We upgraded the library version to "0.14.1" and distributed the service.
Perform normal operation without any issues in the initial post-deployment
However, responses to "TooManyProviderTokenUpdates" messages are piling up on the log about "1hour and 40 minutes" later.
Internally, it is expected that a continuous update of the JWT token file will occur at some point.
( Version 0.13.1 does not produce a TooManyProviderTokenUpdates response)
I looked up the 'Apple Developer Forum' on "TooManyProviderTokenUpdates" responses, I checked the token policy below.
My service environment is apps connection from 3 nodes through http proxy server.
One process is generating ApsClient as a singleton pattern.
-- node-1 (one process)
-- node-2 (one process) <-> http proxy <-> APNS
-- node-3 (one process)
CurrentConnection number was given 3.
Below is the ApsClient generation code.
Push Message lost due to continuous TooManyProviderTokenUpdates response.
As a result, we proceeded with the library rollback. 0.14.1 -> 0.13.1
Does anyone have the same symptoms as me?
What is the cause and what is the problem?
The text was updated successfully, but these errors were encountered: