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
Got weird APN error on some push #461
Comments
Getting another error on notifications this morning : Any idea on this one and the two I wrote yesterday ? |
Guys, need your help on that too. Seems to be a problem with the connection with the provider. I need to know if it comes from node-apn or somewhere else. We're getting other back to back errors now : { device: 'd92e300a272c8567406f1 .. .. . .. . . .7627149c9a361903f69a0', { device: '1626a3a0e6df7877ed0b.... .. ....c41eb476871660a55db4ae6660ecb38', Any idea anyone ? |
@florianreinhart any clues on that ? We are now receiving "Internal server error 500" 100% of the time. How does this package handle this error ? Do we need to do anything more with this? Cleary our iOS users are not receiving notifications anymore. |
I did look into those issue but never saw the ETIMEDOUT our write ECONNRESET error in our logs.
before receiving a lot of "Internal server error". Moreover, errors seem to change over time as it continues to fail over and over. Now we are getting : "apn write failed: This socket is closed." As I read on some issues here, this package should handle connections by itself but clearly we are in a wrong and infinite state here. I would be glad to help debug this but I need more information about all the errors I've got so far to understand clearly what's happening. |
@sambegin then maybe I'm seeing the same issues you are, and the others are different, because I'm seeing exactly that. Are you using an auth token, or the older certificate-based auth? I noticed that when I switched back from token to PEM certificates, the connection issues seem to be much less, although they do still appear |
@philberg I am using an auth token. We switched about a month ago from old certificate-based auth and everything was working perfectly since about 2 weeks... We also did not change anything in the way we send notification (so it doesn't seems do be a payload error or something with the notification json object itself) except the fact that we have more and more users using our application... I'm wondering if it could be a problem. Also, everything is working when I run our application locally... using development or production environment. |
Has anyone contacted Apple Developer Support about this? |
Hi,
We've been using this project for a while now and everything was working perfectly since about one weak or two as more and more users came on our application.
First, we've created one provider as the doc says and sending one or more notification with the service :
Second : we've created an "apnResponseHandler" to handle errors that can occur like "Not registered" or any other problems with tokens that should be handled as the apple documentation says :
The interesting part here is in the "else" statement. For about about a weak or so, APN sends us two kind of error that are going into this "else" statement and we did not find any information about those errors on Apple documentation :
1-- >
{ device: 'some...Device...Token'',
error:
{ [VError: apn write failed: GOAWAY: REFUSED_STREAM Maximum active streams violated for this endpoint.]
jse_shortmsg: 'apn write failed: GOAWAY: REFUSED_STREAM Maximum active streams violated for this endpoint.',
jse_info: {},
message: 'apn write failed: GOAWAY: REFUSED_STREAM Maximum active streams violated for this endpoint.' } }
I would like to know :
2 --> { device: 'some...Device...Token', error:
{ [VError: apn write failed: connection error: Error: stream.push() after EOF]
jse_shortmsg: 'apn write failed: connection error: Error: stream.push() after EOF',
jse_info: {},
message: 'apn write failed: connection error: Error: stream.push() after EOF' } }
I would like to know :
Any help on that would be greatly appreciated ! If you need any more information please ask me.
The text was updated successfully, but these errors were encountered: