Questions tagged [google-cloud-functions]
Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions written in Node.js, Python or Go that respond to cloud events without the need to manage a server or a runtime environment.
google-cloud-functions
18,342
questions
0
votes
0
answers
7
views
How do I add a new font to a fpdf2 doc I'm hosting on google cloud functions?
I have a python google cloud function that should create a pdf when triggered, but the code seems to breakdown, seemingly because of the font, see below.
I tested the workflow with my local ...
0
votes
0
answers
18
views
Firebase onCall Functions Blocked by CORS, tried as true, with links, as false
Yes there are hundreds of post already about this, I've tried every solution. And it's still not working.
I have onCall firebase functions working fine locally, but not when deployed to staging.
I ...
1
vote
1
answer
20
views
Do onCall and onRequest Google Cloud Functions also follow the at-least-once execution pattern?
From the official Cloud Functions docs:
Cloud Functions provides at-least-once execution of an event-driven function for each event emitted by an event source.
Does that also apply to onCall and ...
3
votes
0
answers
12
views
gcloud mistakes event trigger for storage trigger
There's a cloud function in Python that processes some data when a file is uploaded to firebase's bucket:
@storage_fn.on_object_finalized(bucket = "my-bucket", timeout_sec = timeout_sec, ...
0
votes
0
answers
26
views
different predictions on same data, TenserflowJS
I have saved a TFJS model to a document in cloud firestore, if I run this code straight from the browser:
const jsonObject = JSON.parse(TFModeljson);
loadedModel = await
tf.loadLayersModel(tf.io....
0
votes
0
answers
14
views
Google Cloud max instance is not changing
gcloud functions deploy $FUNCTION_NAME --gen2 --runtime nodejs20 --entry-point $FUNCTION_NAME --source . --region $REGION --trigger-bucket $BUCKET --trigger-location $REGION --max-...
0
votes
0
answers
10
views
How to create a public api for deployed model in vertex ai to access from my own application?
I have deployed the ML model from HuggingFace to Google cloud Platform vertex ai. No, I have to create a public api for that model to access it from my own application.
HuggingFace model Link: https://...
0
votes
1
answer
17
views
Firebase functions defineSecret vs defineString security
I am developing a small firebase app and, as part of it, I have some backend functions that make calls to an API using an API key. To avoid storing the key in version control, I define it using ...
0
votes
1
answer
28
views
Why firebase cloud function return 404 Not found and how to fix it?
Seems like I am making API calls, but i get 404 back. I see function calls are added in cloud console function call counter. But i don't see log console.log("function call begin");
What am I ...
0
votes
0
answers
26
views
Cloud function works as http, but doesn't work as a scheduled function
I have a daily scheduled function as follows:
export const dailyExecutedFunction = async (): Promise<void> => {
try {
// some other code
setRoutineAnalytics();
} catch (error) {
...
0
votes
0
answers
39
views
Why does nothing show up in the Datastore database when using Google Cloud Functions?
I have set up a Google Cloud function that automatically runs a document AI processor when a document is uploaded to a storage bucket, and then sends the results to Datastore. I have created a ...
0
votes
0
answers
32
views
Why is the Google Cloud function not finding the default Datastore database? [duplicate]
I have set up a Google Cloud function that automatically runs a document AI processor when a document is uploaded to a storage bucket, and then sends the results to Datastore. I have created a ...
0
votes
0
answers
17
views
Failed to load function definition from source: FirebaseError
I using firestore for study functions so when i went run that aplication appear this error, if this important, i use npx
"Failed to load function definition from source: FirebaseError: Functions ...
0
votes
0
answers
15
views
Prototype issue whith Firebase cloud functions
I have an issue while writing Firebase cloud functions.
Here is the relevant code I have for a cloud function:
import {onRequest} from "firebase-functions/v2/https";
import * as admin from &...
0
votes
0
answers
15
views
I get UNAVAILABLE error when I try to call Firebase Cloud Function in React Native Android App
I get UNAVAILABLE error all the time when I try to call Firebase Cloud Function in React Native Android App.
I installed React Native Firebase exactly as it is described here:
https://rnfirebase.io/
I ...