Reputation: 317
I'm trying to deploy a firebase function from my terminal using this comment firebase deploy But getting this error. Cant understand why its happening.
deploying functions
functions: ensuring required API cloudfunctions.googleapis.com is enabled...
functions: required API cloudfunctions.googleapis.com is enabled
functions: preparing functions directory for uploading...
functions: packaged functions (27.96 KB) for uploading
functions: Upload Error: Server Error. Client network socket disconnected before secure TLS connection was established
Error: Server Error. Client network socket disconnected before secure TLS connection was established
Upvotes: 0
Views: 2414
Reputation: 13
I had the same error for quite a while and still happened sometimes. For a rescue, I use a VPN. It is a network issue. Could be happened because of the ISP or may be a country wise block of Google Cloud Storage AP
Upvotes: 1
Reputation: 1189
After spending lots of time and investigation I have found that this is a network issue. I am guessing you are trying it from Bangladesh Network.
For some reason Govt has blocked the Google Cloud Storage Upload API, so it is failing to upload.
You should try with VPN. Use Free VPN like Hotspot Shield and try to upload the cloud function. I have finally able to upload my function through VPN. Please try.
Upvotes: 1
Reputation: 31
From firebase debug log I have found a bit more about this error. I am not sure what could have done for this.
Request causing trouble or error
REQUEST PUT https://storage.googleapis.com/gcf-upload-us-central1-1.zip?
[warn] ! functions: Upload Error: Server Error. Client network socket disconnected before secure TLS connection was established
Upvotes: 0