TL;DR — I fixed the issue by setting my local and Cloud Functions Node.js version to 12.
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.
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:
After reading every last message in the forum, waiting with growing anticipation to find the solution, I found nothing.
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:
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.
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.
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in re...
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
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 ...
This article will introduce the concepts and topics common to all programming languages, that beginners and experts must know!