Error: Functions did not deploy properly

Functions deploy had errors. To continue deploying other features (such as database), run: firebase deploy --except functions Error: Functions did not deploy properly.

How to get client IP address in a Firebase cloud function?

When saving data to Firebase database with a Firebase cloud function, I'd like to also write the IP address where the request comes from. However, req.connection.remoteAddress always returns...

Firebase functions: koa.js server how to deploy

I already have an app written in MERN stack with koa server prepared build version. My main node file to run by node server.js command to start the whole app looks like this. In every tutorial, I...

use -auto-orient with imagemagick in Firebase functions

I followed the Firebase functions tutorials from the firecasts: https://www.youtube.com/watch?v=pDLpEn3PbmE&t=338s to use firebase to create a thumbnail when I upload an image. This all works well...

How to prevent new user registration on Firebase?

Is there any way to turn off more users from signing up on Firebase after I've signed up specific users? For instance, if I only want 10 particular users to be signed up and no more, is there a...

How can I get specific document data from firestore querysnapshot?

I got a querysnapshot in a function. And want to bring the whole querysnapshot to another function (functionTwo). In functionTwo, I want to get a specific document in the querysnapshot WITHOUT...

How to test a Cloud Function in Google Cloud Platform (GCP)?

I have been trying to find the answer to this but am unable to find it anywhere. On the Cloud Functions section in the Google Cloud Platform console there is a section title 'Testing' but I have...

Firebase Cloud Functions: Difference between onRequest and onCall

Going through the docs, I encountered: ...you can call functions directly with an HTTP request or a call from the client. ~ source there (link in the quote) is a mention about...

Google Cloud Composer using google-cloud-bigquery python client library

I'm trying to run a DAG in Google Cloud Composer in which the first component is to use a http GET request to call an API and then use the python-client library to insert the json into a BigQuery...

Unable to call python code from dart language

Hy !. Actually I am connecting to my my google cloud vm instance using python language by using following modules autobahn, twisted. My google cloud vm instance is working perfectly to be...

How do I setup routing for react in GAE? Directly routing to react-router-dom routes via URL fails in GAE on basic create-react-app?

ANSWER for now This was tough for me to get exactly right. Very little in the way of guidance via Google. I hope this helps others. As Dan Cornilescu pointed out, the handlers accept the first...

Avoid CORS preflight for Firebase callable function

I have a Firebase Callable Cloud Function which I call in my javascript app in the browser. Because the request host is ...cloudfunctions.net and not my app domain this results in a CORS preflight...

Firebase functions--how to handle needing to wait for an async process to end before the express app is ready to be exported

I'm trying to get apollo gateway to run in google's cloud functions (particularly through firebase). Running apollo server is super easy on cloud functions with the following code const functions...

Is there an upload limit on Firebase?

I can't seem to upload files more than 5mb in firebase storage using firebase function with busboy. the error returns: ResumableUploadError: A resumable upload could not be performed....

Can we use async/await in cloud functions in firebase?

I have to functions called: getMatchDataApi() and saveApiDataToDb(). getMatchDataApi() function returns value from an api and saveApiDataToDb() function is used to store getMatchDataApi() value...

Include the document id as a field id in firestore

Heres what i am trying to achieve i want a unique id field for every document in my database and i want that unique id to the same as the document id. Example: documents: data: eBgdTRE123 ...

Unable to deploy a firebase cloud function due to permission error

I was trying to deploy my first firebase cloud function using firebase cli but I encountered an error instead : C:\Users\Anurag Tripathi\Desktop\firebasecloudfunction> firebase deploy --only...

How to upload videos to Firebase Storage for React App

I am working on a react project pretty much like a social media app where users can upload images or videos. I am using firebase storage to store the image and videos. I can able to accomplish...

How to access a different collection within a firebase function

I promise i thoroughly checked through all the previous asked questions and there isn't anything similar to this. I have a firebase function that listens to onCreate on a firestore...

Is Cloud Functions in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)

When i make my first deploy function I can't deploying Because I have Error Asks me to make Upgrade to my account to Blaze I need to Know Can i deploy Function when i use free account?? Output: i ...

Firebase error: Function failed on loading user code (node.js)

I am a relative noob with Firebase my first time using it and following along with a tutorial. The tutorial is a bit outdated and I have been fixing bugs as I have been going, but this one has got...

How to recover GCP project service account

I ignorantly deleted the service account to my GCP project rather than the service account to Google Calendar API and Dialogflow service account. I'm now having issues trying to deploy my...

Get environment variables in a cloud function

I have a Cloud Function in GCP that queries BigQuery in a specific project/environment. As I have multiple environments I would like to get the current project/environment of the cloud function....

functions/lib/functions/src/index.ts does not exist, can't deploy Cloud Functions

When I try deploying my Firebase cloud functions I get the following error. Desired behavior: Deploy functions successfully. Error: Error: There was an error reading...

Bulk notifications using firebase cloud functions react native

I'm new on notifications with firebase and Cloud Functions and wondering if even using CF where servers are managed by Firebase's teams and has autoscale, is there a chance, if I was sending...

Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: Could not refresh access token

The complete error is as follows: Unhandled error Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: Could not refresh access token: Unsuccessful response status code. Request...

How can I retrieve an id_token to access a Google Cloud Function?

I'm trying to generate a id_token to make authenticated calls to Google Cloud Functions using this following code, that I got from here: # IAP audience is the ClientID of IAP-App-Engine-app in #...

Make an CPU-bound task asynchronous for FastAPI WebSockets

so I have a CPU-bound long-running algorithm, let's call it task. Let's say it looks like this: def task(parameters): result = 0 for _ in range(10): for _ in range(10): for _ in...

How large a file size from GCS can handle in Cloud Function?

I want to transfer a >=4 GB of data from GCS to BigQuery using Cloud Function in GCP. Is it possible to do that? I tried creating a temporary 5 gb data file using mkfile commands and tried...

Firebase Deploy Cloud Functions - 60 errors all at once

I haven't made any updates to my Firebase Cloud Functions for a while. I was just making a simple change to a String, so I know it can't be a code issue in the index.ts file. When I tried to...