All Questions
Tagged with google-cloud-platform node.js
2,358
questions
0
votes
0
answers
19
views
Serving static files directly in Google App Engine with express
I have a standard Google App Engine environment and am trying to serve some static files for my create-react-app frontend, but I'm not able to do so without copying over the client/build/ files into ...
-1
votes
1
answer
14
views
Difference between folder created using API and folder created using drag & drop on google cloud storage
Trying to fetch metadata for object created using drag and drop on GCS
I am encountering an issue where when i created a folder on gcs using API and tried to fetch its metadata using
const ...
-2
votes
0
answers
42
views
google document ai api request contains an invalid argument
I created a simple node api as follows
router.post('/extract-text', auth, async (req, res) => {
try {
const { gcsUri } = req.body;
if (!gcsUri) {
return res.status(400).json({ ...
0
votes
1
answer
42
views
How to implement round-robin task processing for multiple users with Google Cloud Tasks?
I am developing a multi-user document storage system with the following constraints:
The order of saving documents must be sequential per user.
I cannot save documents for the same user in parallel.
...
0
votes
1
answer
31
views
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently?
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently? Is there a way to make this process event-driven rather than using periodic checks? I'm looking for ...
0
votes
0
answers
23
views
Why is my Google social login working despite my app not being published?
I have implemented Google social login for my web application. Here are the steps I've taken so far:
Created an OAuth 2.0 Client ID in the Google Cloud Console.
Added my application's domains under &...
0
votes
1
answer
72
views
How to use Google Vertex AI fine tuned model via Node.js
I fine-tuned a model on Google Vertex AI. Before that, I was using regular models with this code(it works):
public static async SendMessage(prompt) {
const vertexAI = new VertexAI({project: ...
0
votes
1
answer
45
views
Connect NestJS API in Cloud Run with Cloud SQL db
I have a NestJs API triying to deploy to Cloud Run but it fails at the moment it tries to connect to Cloud SQL. i'm using typeORM.
This is the config to connect the DB
import { Client, ClientConfig } ...
1
vote
1
answer
50
views
Getting a 403 error when triggering a Cloud Function from a PubSub Topic
I created a cloud function that is triggered by a publish to a pubsub Topic. When I publish a message to the topic and read the funcition logs, I see this error:
"The request was not ...
0
votes
0
answers
39
views
Unauthorized Error Using YouTube Data API with Service Account in Node.js
I am attempting to upload videos to YouTube using the YouTube Data API and a service account in my Node.js backend. However, I keep encountering an "Unauthorized" error. Here is a summary of ...
0
votes
0
answers
51
views
How to apply max-age in cache control for images in Nextjs?
I have created the following next.config.js file:
/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
source: "...
0
votes
0
answers
44
views
Google Speech-to-Text API Misses Majority of Words in Audio Transcription
I am using google speech to text service. Since the audios In my project are longer then 60 sec I use longRunningRecognize function. I run my tests on mp3 and wav format song files expecting to get ...
1
vote
1
answer
48
views
How to design an efficient Pub/Sub pull subscriber for both maximum throughput and fault-tolerance?
I am using google's pub/sub to move processing of some tasks (represented by messages on a pub/sub topic) to the background. Some tasks are expected to fail periodically due to known transient errors ...
0
votes
0
answers
39
views
Remove "Machine Translated by Google" google api document translate
I am paying to use the Google api to translate document and google is adding Machine Translated by Google on each page.
I know this is part of the attribution requirements but if I specify it on my ...
0
votes
0
answers
49
views
How do I extract an Audio from a video in Node.js?
I have a transcribing API route I made using Next.js API route. In that project I pass in an Audio file in the request. But now I wanted to pass in a video and extract the audio from it.
import { ...