Search code examples
firebasegoogle-cloud-functionsfirebase-tools

Invited owner of firebase project can't deploy cloud functions


I have a firebase project where I invited a developer as an owner. He got email and accepted the invitation. Yet he can't deploy functions to that project. He also tried with different internet connections. It's failing with the error below....

! functions: Upload Error: Server Error. read ECONNRESET
Error: Server Error. read ECONNRESET

firebase-debug.log

[debug] [2020-05-13T23:49:33.202Z] >>> HTTP REQUEST PUT https://storage.googleapis.com/gcf-upload-us-central1....
 <request body omitted>
[warn] !  functions: Upload Error: Server Error. read ECONNRESET
[debug] [2020-05-13T23:49:55.186Z] Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
[error] 
[error] Error: Server Error. read ECONNRESET

index.js file contains a simple function that was generated automatically by firebase init command.This is what index.js file contains..

const functions = require("firebase-functions");

exports.helloWorld = functions.https.onRequest((request, response) => {
  response.send("Hello from Firebase!");
});

Solution

  • There was a problem with the google api link in my country. For some reason, these google API were blocked here.