for the life of me I can’t figure out what is happening. I’ve been spending all day searching for the answer but can’t find it anywhere. I’m practicing with writing a function that emails an abandoned form to me. This is the index.js file I run for the local host that hosts the form The function that the request is
Tag: google-cloud-functions
SyntaxError: Unexpected reserved word, for await loop
I have a function like this: but when I try to deploy it to firebase functions I got the following error: Found this: https://github.com/nodejs/node/issues/21617 but I did set my ForLoop in an async function… Answer for-await loops are first available in node in version 10. You’re probably using an earlier node version either locally or in package.json. You will need
Firebase fuction returning “Response is not valid JSON object.”
I am trying to send emails from a firebase function that I call from my vue app. My firebase function looks like: I removed the user and pass values here. They have the correct value in my code. The vue method I use to call this function looks like: When this function is called I get the following error in
Store multiple parameters from different Intents
I have an issue saving multiple parameters from different intents in dialogflow firebase fullfillment. I’ve tried declaring a global variable to store the data there but to no avail . here is what I have so far. I would like to save the parameters from multiple intents to a firebase db Answer You can use context to save/use data across
httpsCallable is not a function when calling a Firebase function
I’m trying to implement a role-based authentication using Firebase auth and Firebase functions. Right now I have a registration form that is working as supposed and now I’m trying to add a form that you submit an email that calls the Firebase function that will attach a custom claim to a user. I already added my function to Firebase via
How to run a background Cloud Function and schedule a change in database?
I’m developing an app using React Native and Firebase Realtime database. I want to do something like this. From the app, I set a time duration and press a button. Then, it writes data to the Firebase. Assume that I set the time duration to 1000000000 ms and press the button. Then, the database looks like this: I want to
update cloud firestore document without id
My Cloud Firestore looks like this: I want to update a document of users given I have an unique identifier for it that is NOT the random id of the document (suppose, for example, the name is unique and I want to use it as identifier). How can I update a document identifying it by a field of it? Answer
Firebase Cloud Functions for Firestore are not triggering
Cannot get Firebase Cloud Functions for Firestore to trigger on onWrite of my collection. Trying to setup device to device push notification for chat app. Function is deployed and on Pay as you go plan, however, changes in document, updates or create in “chats” collection is not triggering. Firebase cloud messaging is supposed to send a push and write to
Firebase firestore cloud functions showing Error: Invalid use of type “undefined” as a Firestore argument
I have a project to add currency details into the firestore database and my project is doing with ionic 3 Whenever I add a new document to the collection a trigger function onCreate() will execute and update the document named ‘updated’. But the trigger function always showing an error. sombody please help.. i have spent lot of time on it.
Firebase function deploying, but not showing up in console
This question is essentially the same as question 44799104, only that I provide my index.js (and the only answer there was not helpful, as I do include ‘exports’). In short, I have deployed my function successfully, but it does not show in the console. Where am I going wrong? Here is my index.js: Answer You didn’t actually deploy that function