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
Tag: firebase
How to get last Firestore ID document
i need help with Firestore. I have a database with a collection of Clients that have some documents named by ID (1, 2, 3..) I want a function that count the number of documents of the collection and create a new document with the value+1 (eg: the last document was 6 and i want a new document 7). This is
How to use template literal in Firebase Cloud Function condition
Is it possible to use template literal in message condition of Firebase Cloud Function? I tried the following but it is not working. I changed to this but it is still not working: I get “Error: Invalid condition expression provided.” Answer Don’t forget to add single quotes around topics:
Variable in JavaScript with firebase
I am creating a simple polling website using HTML & JavaScript (through Glitch) and also Firebase, I followed a tutorial to do it. I have it all working and the voting works fine and displays the results as intended. I now want to take the results and use them to display a chart on my HTML page. I understand how
Image Upload Error: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined
I’m trying to upload images to firebase using postman. With firebase serve running, I send a post request to my route along with Authorization header and the image file but get the following error in the console: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined Full error message: Answer The problem is that you typed
get data from all documents in an collection firebase firestore
i need to get the data of all the documents of a collection in the firestore. but in my forEach I am getting only the first document and I have two. he prints the console twice but in my setPoints state he puts only the first what I am doing wrong?? Answer I don’t immediately see what’s going wrong in
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
Parse time simply within Vue method pushing to Firebase DB
I am creating a message board using TipTap in a Vue.js project with a Firebase DB. I would prefer not to have to use moment.js or another library as it seems superfluous. This is the code for my simple method parse which I feel like is correct. Pretty vanilla JS if you ask me. I first get a Vue warning
Get all the documents from a collection firebase angular/typescript [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question Hello everybody I am check in the official webside of firebase how to
Firestore: Convert time object to timestamp
I am using vue.js for my e-commerce project. I want to set the sale time limit in the firestore collection. ex)If user want to stop to sell his or her product at 15:00, user can input 15:00. Now I could set the time object in my collection. But I want to convert it to timestamp. How can I achieve it?