firebase-tools: Errors when trying to deploy cloud functions
[REQUIRED] Environment info.
firebase-tools: 8.12.1
Platform: macOS 10.14.6
[REQUIRED] Test case
- Run: firebase deploy --only functions:[functionName]
[REQUIRED] Steps to reproduce
- Run: firebase deploy --only functions:[functionName]
[REQUIRED] Expected behavior
Deploy the function to the firebase project
[REQUIRED] Actual behavior
Since yesterday I have got different errors:
- Error: Server Error. connect ETIMEDOUT 172.217.28.106:443

- Error: Could not read public directory. Remove links and shortcuts and try again.
When put the debug flag I got this information too:


I tried to run firebase logout and firebase login again and sometimes the login process gave me errors too:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (10 by maintainers)
To add to @aravindvnair99 comment I also have started experiencing this recently with no change to the code.
Functions deploys started to fail intermittently from 03/10/2020.
When deploying I get the same error as above for random functions each deploy. Following the link to the logs the console returns: DENIED: Unable to write blob. This can be resolved by clearing the image for the failed function and redeploying. However it continues to fail on subsequent builds this is happening > 33% of the time.
I am using the Node 12 image it seem to be more reliable with Node 8 however this is now deprecated.
I ended up resolving this issue by deleting the entire bucket (not just its contents) and then redeploying the functions since then I have not seen the issue again
@aravindvnair99 thanks for following up!
@samtstern I’m also getting: