andreialecu / node-apn-http2

Communicate with Apple Push Notification Service via native Node.js v8.8.1+ HTTP2 module (node-apn drop-in)
MIT License
27 stars 10 forks source link

AWS Lamda + Node v8.10.0 - Endpoint request timed out #6

Open samsprakash opened 6 years ago

samsprakash commented 6 years ago

I was using node-apn before, It was working well. It stopped working few days before. I moved to node-apn-http2. However still I am getting the same error "Endpoint requested timed out". Please help.

andreialecu commented 6 years ago

About how many pushes are you trying to send? Perhaps you should send in batches. As far as I know, AWS Lambda has a maximum request timeout of 30 seconds, so if it takes more than that the process might get killed.

samsprakash commented 6 years ago

I am testing with only one device token.

bfelbo commented 5 years ago

Did you ever get this to work? We're using the same setup and are thinking of using this library :)

samsprakash commented 5 years ago

Yes, it is working well. Make sure that use the node version 8+

On Mon, 20 May 2019, 08:50 Bjarke Felbo, notifications@github.com wrote:

Did you ever get this to work? We're using the same setup and are thinking of using this library :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andreialecu/node-apn-http2/issues/6?email_source=notifications&email_token=ABCHXEFB5Q6E7IA3HAQSTR3PWHYTRA5CNFSM4FCTOYC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVXOQZA#issuecomment-493807716, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCHXECPHSY4FQRPDBIOWL3PWHYTRANCNFSM4FCTOYCQ .

bfelbo commented 5 years ago

Great, thanks!