Firebase Cloud Function Deployment (Server Error. Client network socket disconnected before secure TLS connection was established)

1,973 views
Skip to first unread message

Sohel Sarder

unread,
Apr 27, 2020, 8:25:10 AM4/27/20
to Firebase Google Group
Every time  I am trying to deploy a firebase cloud function I am getting the following error, I tried with different version of node.js but error remain same . Following are the deployment logs from my debug console.

 <request body omitted>
!  functions: Upload Error: Server Error. Client network socket disconnected before secure TLS connection was established
[2020-04-26T17:41:13.754Z] Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (_tls_wrap.js:1086:19)
    at Object.onceWrapper (events.js:273:13)
    at TLSSocket.emit (events.js:187:15)
    at TLSSocket.EventEmitter.emit (domain.js:442:20)
    at endReadableNT (_stream_readable.js:1092:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Error: Server Error. Client network socket disconnected before secure TLS connection was established

Having trouble? Try again or contact support with contents of firebase-debug.log

Kato Richardson

unread,
Apr 27, 2020, 12:40:50 PM4/27/20
to Firebase Google Group
Hi Sohel,

At first glance, that looks like an SSL or firewall issue. Thanks for trying multiple node versions; maybe also try npm i -g firebase-tools to make sure you're on the latest, but I'd still expect this to be something networking related.

You could also run the command with --debug enabled.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9a4245f6-b73b-4038-ad5f-2d955ad1c06e%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Sohel Sarder

unread,
Apr 30, 2020, 8:25:29 AM4/30/20
to Firebase Google Group
Hi Kato,

Thanks for your reply. I switched to different network then it started working. Then I made some changes in my cloud function and tried to deploy, again this started failing again and again  and continuously giving error  "Error: Server Error. read ECONNRESET". I tried to work again with successful version of my cloud function but the error remain same. I find this problem very inconsistency and not following any pattern. Thanks for you help and looking forward to hearing from your experience.


Thanks,
Sohel


On Monday, April 27, 2020 at 10:40:50 PM UTC+6, Kato Richardson wrote:
Hi Sohel,

At first glance, that looks like an SSL or firewall issue. Thanks for trying multiple node versions; maybe also try npm i -g firebase-tools to make sure you're on the latest, but I'd still expect this to be something networking related.

You could also run the command with --debug enabled.

☼, Kato

On Mon, Apr 27, 2020 at 5:25 AM Sohel Sarder <sohel...@gmail.com> wrote:
Every time  I am trying to deploy a firebase cloud function I am getting the following error, I tried with different version of node.js but error remain same . Following are the deployment logs from my debug console.

 <request body omitted>
!  functions: Upload Error: Server Error. Client network socket disconnected before secure TLS connection was established
[2020-04-26T17:41:13.754Z] Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (_tls_wrap.js:1086:19)
    at Object.onceWrapper (events.js:273:13)
    at TLSSocket.emit (events.js:187:15)
    at TLSSocket.EventEmitter.emit (domain.js:442:20)
    at endReadableNT (_stream_readable.js:1092:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Error: Server Error. Client network socket disconnected before secure TLS connection was established

Having trouble? Try again or contact support with contents of firebase-debug.log

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.

Kato Richardson

unread,
May 4, 2020, 12:17:57 PM5/4/20
to Firebase Google Group
No real advice here. It still sounds like poor network connectivity or similar. Is this specific to Windows by any chance?

☼, Kato

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0941f9c6-823b-4b3d-b2af-85e56ee55433%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages