All Questions
Tagged with google-cloud-functions express
408 questions
0
votes
0
answers
52
views
Firebase Cloud Functions CORS Issue When Using Credentials
I'm encountering a CORS error when I set my frontend API calls to include credentials. Without credentials, the requests work fine. However, once I set credentials: 'include', I no longer receive any ...
0
votes
0
answers
99
views
FirebaseError: Could not detect runtime for functions
I'm trying to deploy a Vite+React+SSR app to Firebase, but Firebase won't recognize the runtime for my server script. I've created a file – server/index.js – running Express.js for SSR rendering of ...
0
votes
1
answer
89
views
Receive Postbacks through NSAdvertisingAttributionReportEndpoint with Node
I try to get the body of a postback with Node in Firebase Functions:
const app = require("express")();
app.post("/.well-known/skadnetwork/report-attribution/", function(req, res) {...
0
votes
0
answers
27
views
How to log a hostname of requests to firebase hosted API, when custom domain is used and Express
I have API build as Firebase cloud function, running express webserver and the function is connected to custom domain. I want to log the url clients are using to initiate request to the API.
Reading ...
0
votes
1
answer
83
views
404 Error Occurs When Making POST Requests via Firebase Function
After configuring CORS to allow requests from any origin to resolve a previous CORS issue, I no longer get CORS errors, but now a 404 error occurs when making POST requests. I’ve checked the URL ...
1
vote
1
answer
132
views
Express with Multer file upload logs an empty array
I can't figure out why I can't use express and multer in my code above. When I upload my file, all I get in the log is an empty array. I've spent several hours modifying it, I just don't get it!
I've ...
0
votes
0
answers
29
views
How to separate express app routes into different source files in Cloud Functions? [duplicate]
I am currently developing an API with google's Cloud function, and wanted to know how arrange my Node.js index.ts file so that I can keep my callback functions in separated files while still handling ...
1
vote
1
answer
345
views
pnpm firebase app "Could not find a declaration file for module 'mime'"
I'm trying to switch from yarn to pnpm in my turborepo monorepo.
When running lint or build I get this error:
../../node_modules/.pnpm/@[email protected]/node_modules/@types/serve-static/index....
0
votes
0
answers
107
views
Google Cloud Function with express returns TypeError: stream.listeners is not a function
I try to create a really simple Google Cloud Function with Node.js, but I keep getting this error: TypeError: stream.listeners is not a function.
This is index.js having the entry point set as ...
0
votes
1
answer
94
views
GCP Cloud Function, where express config is async
I have an express server that I want to use in a serverless Cloud Function. I want to enable the Cloud Logging. As the tutorial says, I need to refactor the configuration of my server to an async ...
0
votes
0
answers
19
views
App doesn't complete the api call through firebase functions [duplicate]
***Edited: added frontend code. Removed routes that are not being tested.
***Edited2: added all code for frontend and backend
***Edited3: modified the details of error because it doesn't have to do ...
2
votes
2
answers
1k
views
How do use `defineSecret` with express and `onRequest` in firebase function V"?
I am upgrading my firebase functions to V2 and I want to use the new way of managing secrets via defineSecret described here:
https://firebase.google.com/docs/functions/config-env?hl=en&gen=2nd
It ...
2
votes
1
answer
186
views
Enforced App Check on my app and on my cloud functions does not prevent calls from outside
I use Firebase Cloud Functions in my iOS app. I want to protect them with Firebase App Check. I did all of the steps from "Get Started" guide - included App Check framework, implemented the ...
1
vote
1
answer
42
views
Express app with Cloud Function - no such file or directory
I want to serve my react project with a cloud function. But with the following code I get the error 500 with:
server error [Error: ENOENT: no such file or directory, open '/workspace/build/index.html'...
0
votes
1
answer
205
views
Why sending request with `withCredentials: true` and `body` will throw CORS error in Angular HttpClient?
My goal is to send request to a Cloud Function and the Cloud Function will response with a Set-Cookie header, then the browser will store the cookie.
The problem is without withCredentials: true, ...