Skip to main content

All Questions

1 vote
1 answer
36 views

Firebase functions/Nodemailer sending email to myself when a form is submited

I want to use firebase functions with nodemailer to receive emails when a contact form is submited. The form is being saved in my database and then i want to use it in my index.js file with a function ...
nikobinev's user avatar
1 vote
2 answers
604 views

Error message: Provided module can't be loaded. Cannot find module 'nodemailer'

i have a firebase project on react framework, where i want to create firebase funcion that will send an email with nodemailer, but when i try to deploy it, it says that nodemailer is missing ive tried:...
Jerrdust's user avatar
0 votes
1 answer
127 views

Puppeteer times out when launching browser in Firebase Cloud Function - How to troubleshoot?

I'm trying to generate a PDF using Puppeteer within a Firebase Cloud Function. However, every time I attempt to launch the browser using Puppeteer, the function seems to hang and eventually times out. ...
shevvydj's user avatar
0 votes
1 answer
147 views

How upload a image using Firebase storage on server side

I'm trying to create an upload function using Firebase storage on the server side. Upload function on the server side: const functions = require("firebase-functions"); const admin = require(&...
Eduardo Varjão's user avatar
0 votes
1 answer
395 views

Firebase cloud functions errors: CORS and Unhandled error TypeError: openai is not a constructor at GPT

I'm trying to make a https onCall to the OpenAi API using a firebase cloud function. At first I got a CORS error, which seems to be resolved, after changing this: exports.GPT = functions.https.onCall((...
SurelySure's user avatar
0 votes
1 answer
600 views

firebase admin sdk to create new user

**In my crud project the admin adds the user in the docs as well as in auth by normal sdk would replace the current user so i tried admin sdk but writing the cloud functions and calling is getting ...
Dastagir Shaikh's user avatar
0 votes
0 answers
70 views

Multiple filters using FIrebase Functions (Server Side) - React JS

I'm trying to create an application where you have multiple blogs about lost, found and up for adoption pets. You can filter this blogs by: 'Categories (Lost, found, up for adoption)', 'Animal type (...
Cindy Ortega Palma's user avatar
1 vote
2 answers
1k views

How to pass File to Firebase Functions

I'm trying to pass a file (image) from my Reactjs app to Firebase Functions to then upload it to Pinata using their Node.js sdk but my cloud function keeps returning: ERR_INVALID_ARG_TYPE Is it ...
cormacncheese's user avatar
0 votes
1 answer
4k views

Failed to generate manifest from function source: TypeError: Cannot read properties of undefined (reading 'secret') react js node js

I try to replace: const stripe =const stripe=require("stripe")('sk_test_51KMbN...'); to const stripe = require("stripe")(functions.config().stripe.secret); but when I run ...
Grace's user avatar
  • 173
1 vote
0 answers
4k views

Data command failed: 421 4.3.0 Temporary System Problem. Try again later (10) - gsmtp

I have deployed an HTTPS Function on Firebase, and I always get this error when I'm trying to send emails in bulk. I am using nodemailer pool to send emails. Error: Data command failed: 421 4.3.0 ...
Inaara Kalani's user avatar
0 votes
0 answers
2k views

Firebase Function Error "Client network socket disconnected before secure TLS connection was established" when sending bulk emails via Nodemailer

I am sending bulk emails from Firebase HTTP Request using Nodemailer. Some of the emails are always missed out and it returns with this error: Client network socket disconnected before secure TLS ...
Inaara Kalani's user avatar
3 votes
1 answer
5k views

'Cross-Origin Request Blocked' when testing Firebase Cloud Functions using local emulator

I'm getting the following CORS error when trying to invoke my callable function locally using the firebase cloud function emulator with my react app: Cross-Origin Request Blocked: The Same Origin ...
Asia N's user avatar
  • 51
1 vote
1 answer
2k views

Cloud Function - Checking if a token has expired

How do I check if a Google API access token is expired? Using Nodejs Google Api Client and successfully get a refresh and access token on login. However, I'm running into issues when the access token ...
InquisitiveTom's user avatar
1 vote
1 answer
94 views

Error in do map of array inside html in nodejs

everybody i have this peice of code in nodejs <table class="invoice-items" cellpadding="0" cellspacing="0"> <tbody> ...
Saddam Mohsen's user avatar
0 votes
0 answers
26 views

How can I update other documents in FIrestore based on updating another?

So I want to update multiple documents in my 'appointments' collection based on a document being updated in the 'customer' collection. How can I achieve this through firebase functions? I feel like my ...
Antony Sanders's user avatar

15 30 50 per page