When Your Firebase Cloud Functions Don’t Want to Deploy Anymore

When Your Firebase Cloud Functions Don’t Want to Deploy Anymore

TL;DR — I fixed the issue by setting my local and Cloud Functions Node.js version to 12.

The Story

I have always used firebase-tools to manually deploy my Cloud Functions like this:

firebase deploy --only functions

For the last eight months that my project/company has lived, I have never experienced an issue deploying my Cloud Functions, until today.

This time, I got an error:

Deployment error. Build failed: Build error details not available.

Image for post

Why were the build error details not available? I’ll never know. This error was about as useless as they come. I knew what I had to do. After pasting this message into Google, I stumbled upon the following GitHub issue:

https://github.com/firebase/firebase-tools/issues/853

After reading every last message in the forum, waiting with growing anticipation to find the solution, I found nothing.

Image for post

I had to go deeper. I’m talking behind the scenes, rip off the Firebase curtain, into the Google Cloud Platform logs. I found this:

ERROR: error fetching storage source: generic::unknown: retry budget exhausted (3 attempts): fetching gcs source: unpacking source from gcs: source fetch container exited with non-zero status: 1

Obviously, this meant nothing to me, but I had something to work with. I pasted this message into Google and found the answer:

GCP Cloud Function - ERROR fetching storage source during build/deploy

Guided by this StackOverflow question, I fixed the issue by setting my local and Cloud Functions Node.js version to 12. Why did this fix the issue? Well, as all good software engineers know, don’t think about it too much. Thanks for taking some time to read this. Maybe it helped you. Maybe you’ll give me some claps. Maybe I wrote this for myself, so I never have to deal with this again.

programming coding firebase

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

13 Free/Low-Cost Sites to Supercharge Your Programming Self-Education

Although we still talk about programming as a standalone career, the dominance of technology in our lives makes it clear that coding is much more than a career path. In my opinion, computer science is more than a college major or a high-paid job; it’s a skill, essential for thriving in a modern-day economy. Whether you work in healthcare, marketing, business, or other fields, you will see more coding and have to deal with a growing number of technologies throughout your entire life.

What is firebase,firebase bangla tutorial.

LIKE | COMMENT | SHARE | SUBSCRIBE The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in re...

How to Structure Your Programming Code

I remember my first fumble with basic on my ZX Spectrum computer back in the 1980s, ploughing through pages of basic commands and example code without any real idea of how I could write programs myself

What Is Code Golfing And Biggest Such Tournaments

Code golf is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that implements a certain algorithm. Playing code golf is known as "golf scripting". Code golf challenges and tournaments may also be named with the ... Some code golf questions, such as those posed on general programming ...

Coding 101: Programming Language Building Blocks

This article will introduce the concepts and topics common to all programming languages, that beginners and experts must know!