-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
APNS VError: apn write failed: Not receiving Ping response after 150000 ms #90
Comments
Seems to be an issue of node-apn node-apn/node-apn#583 |
Had to downgrade to parse server 2.4.2 to fix this in production for now. |
You can always downgrade 'just' the push adapter and provide the custom adapter at startup time. |
@funkenstrahlen thanks for referencing the node-apn I didn't notice any issue on our production apps yet. |
@funkenstrahlen we had this same error on our production server (parse-server 2.5.3 and parse-server-push-adapter 2.0.0), after some investigation we found out it always happened when sending push notifications to one particular user with over 100 installations. We deleted all the outdated installations and haven't gotten this error message since. This is only a short term solution, but we haven't found the root cause of the error yet. |
I have no user with over 100 installations in my database and the error occurred. |
We are seeing this, too on our production server with 72k installations. Only a fraction of our iOS users currently receive push messages. I just deleted around 2000 installations (i.e., wrote a script to extract the reported tokens from pm2 error logs, then deleted corresponding installations from mongodb) with bad device tokens and hope that fixes things... Edit: the amount of sent pushes is back to normal after deleting these tokens |
@kontextbewusst For me this looks like bad device tokens are causing a lot of retries sending the push notification and finally APNS is blocking the connection? I am worried nothing is happening in the node-apn issue thread: node-apn/node-apn#583 |
Any fix for this ? it is happening to me on my production server ? only fix is to downgrade ? |
@hopye, no, the fix is to provided it on node-apn. Which is open source as well. Anyone could work out a fix. |
@funkenstrahlen any chance you’d be able to check it on node-apn side? |
@flovilmart I am sorry but I currently do not have sufficient knowledge to work on the |
@funkenstrahlen All good ! no problem! |
Please guys 🙏🙏🙏🙏🙏🙏🙏🙏 |
@funkenstrahlen, does the error prevent any further notification being sent or will the connection be re established at one point? Asking that as we do not notice it and we’ee Sending an honorable volume daily |
@flovimart it does come back at one point.. i think i can help you with logs and testing..... |
Ill be at home in 30 minutes or less.. i could do some live testing to produce the error and send you logs if you need them |
@flovilmart @funkenstrahlen i just updated to latest parse-server, did some test and havent seem the error again.. even thought i have several bad attempts to send because of bad tokens.. after sending to an ios audience of 2,500.. Push is sending fine and havent seem the time out.. ill be making some more tests on it... For now.. looks Good with parse server 2.6.1
|
Hi guys @flovilmart @funkenstrahlen , just wanted to update. After seeing bunch of bad tokens in the log.. the same is happening..
|
2.6.2 feature to remove invalid device tokens only check for error "Unregistered", not "BadDeviceToken" |
Yes indeed, can you open a PR for adding this error?
…On Sep 29, 2017, 1:04 PM -0400, bivisss ***@***.***>, wrote:
2.6.2 feature to remove invalid device tokens only check for error "Unregistered", not "BadDeviceToken"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sure! I'll open a PR |
I have similar error as @hopye, any solution so far? Or should I use Alternative Services instead? |
hey @bivisss @flovilmart , do i have to enable the feature to remove the BadDeviceTokens or it does it automatically ?? i was reading the changelog on parseserver 2.6.2 , i saw some kind of a variable for setting " PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS=1 " , where should i set this ? |
you should set this in your environment variables, when starting your server. We'll make it the default on the next release. |
I appreciate there is a way to delete invalid device tokens now. It does only clear the How does this affect the bug I reported way above with the no ping response error? Looks like there is no node-apn fix yet: node-apn/node-apn#583 |
Yes, it only removed the deviceToken from the DB, keeping the installations intact. As for the ping error, I’m not sure. |
As we haven't seen much activity on node-apn and the never version is being actively worked upon, I tried a workaround (re-generate the provider at every calls) this may incur additional issues, but feel free to test it out. (#104) |
|
I’ll make a release of the push adapter with the alpha version of apn as well as instructions to provide a custom push adapter |
@flovilmart Do you think it is a good idea to make a release with an alpha version? |
@funkenstrahlen I'll make an alpha release of the adapter |
@flovilmart First tests with the alpha release look good. I do not have enough clients on my testing backend to reliable reproduce the ping error though. I did not test Just a suggestion: I think |
it's not enabled by default, yes we could rename it, but it seems there's some issues with it, cleaning up still valid tokens: #87 (comment) |
I can confirm it is not enabled by default. I forgot I had set |
@funkenstrahlen did you find a solution to this issue? My logs are 95% full of these APNS errors, but if I set PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS=1 I lose valid iOS installations |
@funkenstrahlen @flovilmart still experiencing this issue with 3k installation audience. |
No. It’s not ready for use yet. |
@hopye i am having the same issue as yours. Every time i send a notification i get the same log. Any fix? |
I run parse server 2.5.3 with push adapter 2.0.0.
After a lot of errors in the console
APNS error transmitting to device XXXXXXXXXXXXXX with status 400 and reason BadDeviceToken
I see APNS connection failing.This causes push notifications to not be delivered.
The text was updated successfully, but these errors were encountered: