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
That's really strange. The library is supposed to hold a single authentication token and refresh it every 50 minutes. The Apple documentation states that the token should be refreshed between 20 and 60 minutes.
The only reason that comes to my mind right now is that the TokenBearer process died before the 20 minutes time while the connection process is alive. Then the connection process would use a new token (after the TokenBearer is restarted) on the same connection which would trigger the TooManyProviderTokenUpdates response. Could you look into logs for messages like Shutting down TokenBearer? Also, it would be helpful to turn the debug logs because then the library logs every token refresh with Updating APNS token message.
Nevertheless, I don't think that closing/reopening the connection would be the proper way to handle such issue. It'd be only a workaround. We should seek the root cause of this problem and fix it.
Hello!
Can we get closing/reopening connection when we see TooManyProviderTokenUpdates. I'm using mongoosepush.
I believe it's related to this issue that's happening here
jchambers/pushy#811
Currently my fix is to watch the log from outside and restart the process using swatchdog.
I attempted to patch this lib but i don't know enough and it ended up giving me some endless loop...
https://gist.github.com/andrewvmail/d442b7239611a55afd60f4e71166ab2f
Cheers!
The text was updated successfully, but these errors were encountered: