Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Unable to run Video Intelligence AI due to Message Serialization Error

i'm trying to run Google Cloud Video Intelligence through cloud functions locally using firebase emulator. This function hasn't been deployed to production and i get an error. I'm following the ...
Coolkid's user avatar
  • 569
0 votes
0 answers
16 views

Cannot see the logs from Firebase Database in Google Cloud Run to send push notification

I am trying to use Firebase logs. I am able to add new records into my Firebase Realtime Database Chat entity. The problem is I cannot see any logs or errors when browsing them at Google Cloud Log ...
user7289922's user avatar
0 votes
0 answers
50 views

Firebase functions V2: ; SyntaxError: Cannot use import statement outside a module at wrapSafe

I am trying to send notification to device when I receive message in chat in my app. At the moment I just want to read snapshot contents, but when trying to deploy, I am hit with an error: Firebase ...
user7289922's user avatar
1 vote
0 answers
61 views

Why I get connection timeout to Cloud SQL in GCP Cloud Functions Gen 2 randomly on some requests?

I have several Google Cloud Functions (Gen 2) functions that access a PostgreSQL database hosted in Cloud SQL, using node-postgres (pg). These functions can be called multiple times by the same ...
Matheus Ribeiro's user avatar
0 votes
1 answer
17 views

Firebase - user customClaims - admin

im trying to find a way how to add to user Admin role via custom claims. I tried to do it with user creation cloud function, and onCall function, I dont know if claims are assigned, or not, or how to ...
Dima Malko's user avatar
1 vote
0 answers
45 views

why isn't my GCS-triggered Python Gen2 Cloud Function executing/logging despite Editor role?

I am trying to trigger a simple Python 3.11 Gen2 Cloud Function (parse-ticket-v2) in project loadsnap-prod (ID: 266229951076, region us-central1) when a file is finalized in the GCS bucket gs://...
Brian Murphy's user avatar
0 votes
0 answers
49 views

Do Firestore Queries save time? [closed]

I'm creating an ecommerce app that has 100+ products. I want to show only 4 featured products on the homescreen. Now, my question is, whether should I create a separate collection for featured ...
Aabis Ahmed Hassan's user avatar
0 votes
1 answer
37 views

How to generate the Endpoint URL to cloud functions for push subscriptions on Google Pub/Sub?

I have a Cloud Function (v1) that is set to trigger every time a message is received in a specific topic. This part of the configuration is done correctly (since I've followed previous working cloud ...
marianod323's user avatar
0 votes
2 answers
46 views

FCM push notification error: code: 'messaging/invalid-payload

I'm trying to implement FCM push notifications in a react.js app using Firebase Realtime Database Cloud functions, for the first time and stuck at this: error: Message must be a non-null object I've ...
Iam Wayne's user avatar
  • 561
0 votes
1 answer
39 views

Imported modules becoming undefined in TypeScript Firebase Functions

I'm using Firebase Functions in TS. When executing npm run-script build and starting the emulator, here's what it throws: TypeError: Cannot read properties of undefined (reading 'user') at Object.&...
starleaf1's user avatar
  • 2,894
0 votes
1 answer
30 views

Firebase v2 function loses admin rights

I have a firebase functions file that, in v1, worked perfectly. Upgrading to v2, I use: const functions = require("firebase-functions/v2"); const admin = require("firebase-admin"); ...
Andrew-NZ's user avatar
  • 501
0 votes
1 answer
47 views

Google Calendar Push Notification - Body is empty?

I have setup a push notification for calendar events like so: const response = await calendar.events.watch({ auth: authClient, calendarId: 'primary', requestBody: { id: 'calendar-...
corycorycory's user avatar
  • 1,656
0 votes
1 answer
30 views

The --update-labels argument of gcloud functions deploy does absolutely nothing

Maybe this is a bug because its suppose to work: https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--update-labels This command completes without issue: gcloud alpha functions deploy <...
red888's user avatar
  • 31.9k
0 votes
0 answers
26 views

Unable to get the context.uid from the Flutter client side to reach the Cloud Functions

Problem The getPotentialMatches Cloud Function in my Firebase project fails with the error User must be authenticated because context.auth is consistently undefined. The client sends a valid token, ...
Zakaria El Dandachi's user avatar
0 votes
1 answer
37 views

GCP Cloud Functions - How to import local scripts outside of cloud function? How to structure projects that use a global config.py file?

I have one giant repo folder which contains many more sub-repos, and each sub-repo contains multiple cloud functions, i.e. |-repo_master |-repo_a |-cloud_function_a |-....
Jack Kirby's user avatar

15 30 50 per page
1
2 3 4 5
1237