I am trying to re-use existing Express application and basically port it to firebase functions. I have a project structure like this: /src/app/index.js /functions/index.js The whole set up works well when using firebase emulators:start. I can call the functions and everything works properly. However I am unable to deploy the functions as I get this error message: Function failed on
Tag: google-cloud-functions
Unescaped Characters when using languages other than English in Node JS?
I am using a Google cloud function with the Google Places API. It works fine in English, but I get this error when inputting Hebrew or Russian: When I try my request directly in a web browser it works fine: But when I try the exact same string in NodeJS I get the error above, here is my code (I
Firebase Cloud Function listUser get 1000+ users
I want to modify the database value that has the uid of all users as the key after getting uid through listUser(), but listUser() has 1000 max. If there is a good way to get uid of all users, please let me know Answer The Firebase Admin SDK supports pagination to cycle through all the registered user accounts. Follow the
Before/After properties without change are not equal in firestore-triggered Cloud Function
I have a firestore collection called events that contains documents with the fields begin, end and title. The function is triggered if a document was changed. begin and end are of type timestamp. I want my function to return false if begin or end was changed. In my cloud function, I check if the respective before and after data is
Firebase Functions times out when using puppeteer’s browser.newPage()
I have seen others having relatively minor performance problems with puppeteer running on Firebase Functions. In my case, Firebase times out before I can do anything with puppeteer, even with the memory and timeoutSeconds cranked all the way up. Code: Here’s the resulting Firebase Functions log. It takes a few seconds to run puppeteer.launch(), and then browser.newPage() won’t finish at
Firebase cloud functions: can’t extract parameters when invoking a callable function
I’m using the Flutter SDK to call a cloud function. I add a parameter someField but on the cloud side, it cannot be retrieved and is always undefined. This is how I call the cloud function The cloud function is written as follows Answer You’re mixing up callable functions on the client app with HTTPS functions on the backend. Please
Change the field value in Firestore automatically after a certain time [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I’m working on Javascript and here’s how’s my data looks like. I want the functionality where after every 24 hours,
Firebase Functions cannot get request values sent from a simple contact form in Angular9
I am developing a simple contact form by using Angular9 + Firebase. I have no idea how to get the values from the contact form in the Firebase Function. I tried it in many ways, but I always get the “undefined” value. The following is my code. Please give me the solution if anybody knows how to do. Thank you.
can I get some documents from firestore simultaneously using Promise.all?
I want to get some documents from Firestore. in my callable cloud function, instead of waiting getting document one by one, await one by one, I use Promise.all so I can get all documents faster, like this and then I want to loop the document snapshots I just get, and here is the problem I have an error TypeError: Cannot
Google Cloud Function async with multiple fetch requests
I’m new to both GCF and Javascript async and have been struggling with this. I perform a fetch call initially and then pass that response as a parameter to a second function which then also performs a separate fetch call. During the second function, my empty initialized json gets properties added to it, and when that function completes, I want