jlcvp / fcm-node

A Node.JS simple interface to Google's Firebase Cloud Messaging (FCM) for Android & iOS & Web Notification and data push
MIT License
125 stars 48 forks source link

Error : socket hang up ( it working fine but suddenly stop from yesterday.) #35

Closed FarhanAhmad212 closed 6 years ago

FarhanAhmad212 commented 6 years ago

Hi it was working fine since last month but suddenly stop from yesterday and following error.

Error: socket hang up at createHangUpError (_http_client.js:302:15) at Socket.socketCloseListener (_http_client.js:334:23) at emitOne (events.js:101:20) at Socket.emit (events.js:191:7) at TCP._handle.close [as _onclose] (net.js:511:12) code: 'ECONNRESET' }

it might due to content length please go through the below link. https://stackoverflow.com/questions/18692580/node-js-post-causes-error-socket-hang-up-code-econnreset

jlcvp commented 6 years ago

@FarhanAhmad212 can you provide more information about your instance?

Are you using the FCM constructor with the json file or the plain text key?

FarhanAhmad212 commented 6 years ago

I am using with json file .

Thanks

FarhanAhmad212 commented 6 years ago

I start working now .

Thanks Farhan ahmad