Questions tagged [google-cloud-platform]

Google Cloud Platform offers a wide range of cloud computing solutions that empower users to develop applications and websites, securely store data, and gain valuable insights by analyzing data using Google's advanced infrastructure.

Encountering a problem while executing a Python script with Selenium on GCP Cloud Run

I have a Python script that requires logging in and retrieving an access_token from an authentication server. The process involves navigating to the authentication server's URL, entering a username and password, clicking 'login', waiting for ...

Deployment of the API and frontend on separate subdomains and domains respectively within the Google Cloud Platform

My journey began by setting up a Google App Engine where I deployed both the API and the frontend on my custom domain, which I referred to as mysite.ms. The API was written in nodejs with Express, while the frontend was a React application. To achieve this ...

"503 Error: None of the backends are operational or in good

I encountered an error while trying to deploy updates to the node.js code for Google Cloud. 503 All backends failed or unhealthy: @google-cloud/pubsub@https://registry.npmjs.org/@google-cloud/pubsub/-/pubsub-0.13.0.tgz Here are the logs: 4421 http fetch ...

The SQL instance on Google Cloud Platform is currently unable to establish connections with a **nodejs application** when using custom user credentials

After adding my IP to the whitelist, I successfully connected to a Google Cloud Platform SQL Server instance using the sqlcmd utility in my terminal. sqlcmd -S <ip-address> -U <username> -P<password> However, when attempting the same co ...

Is it possible to utilize the Compute Engine API with NodeJS to make changes to the files on a Compute Engine virtual machine?

Currently, I am working on a project in Google Cloud that involves utilizing both their App Engine and Compute Engine services. Within the Compute Engine, there is a virtual machine instance named "instance-1", where a python file (file.py) resides: name ...

Using Firebase with Arrays in Javascript

Currently, my team and I are working on a project using Firebase with Vue.js as the framework. We've come across a challenge regarding creating, updating, and deleting elements in a Firebase cloud document. For instance, within our 'people&apos ...

Error related to environment / authentication - BigQuery Admin: {invalid_grant, Invalid JWT Signature}

Recently, I embarked on my first journey to utilize the BigQuery API by following a Python tutorial guide available here. My primary objective is to create datasets, however, I'm encountering challenges with basic public data access. To address this, ...

Optimizing Firebase and Next.js for serverless deployment on Google Cloud Platform: A guide to effectively managing staging, production, and

Currently, I am utilizing React along with next.js and Google Cloud functions to host my application. Additionally, I am integrating firebase into the mix. One pressing issue I am facing pertains to efficiently configuring the staging and production enviro ...

Restricting the circulation of published and subscribed messages

I'm facing an issue with my service that utilizes Google Cloud Pub/Sub for handling job requests. When a high volume of requests comes in, it causes the Docker pod to fail. Any suggestions on how I can effectively limit the rate of incoming messages? ...

Ways to utilize Pub / Sub Notifications for Cloud Storage

In order to utilize Pub/Sub Notifications for Cloud Storage, I am working with storage files on Firebase and need to perform various processes. These processes result in additional data being stored in different fields on Firebase. However, there are insta ...

The structure of a project using a Vue app and a Node API

Seeking your thoughts on combining a Vue App with a Node using API for my upcoming project. I have set up two separate folders for the client (VueJs) and server (Node) locally: - client (VueJs) - server (Node) I am currently running them individually usi ...

Node.js app on Google App Engine experiencing memory leaks when running a basic pubsub application, leading to surpassing the soft private memory limit

My experience with developing a simple appEngine using pubsub app has led me to some concerning observations. Upon reviewing the appEngine logs, I noticed a constant increase and drop in memory usage that repeats itself. Upon closer inspection of the logs, ...

Encountering an error while attempting to connect to the NestJs Google VM Server from a Firebase-hosted NextJs application

A NestJS server has been set up as follows: import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import * as fs from 'fs' import * as https from 'https' import * as express from 'express' import * as http from 'http' import ...

A guide to successfully deploying Angular 4 applications on app engine without the hassle of uploading a hefty 220MB of node_modules

Is it possible to deploy my Angular 4 apps on Google Cloud App Engine while only uploading the dist folder? I currently have 220mb of data in node_modules, but I only want to deploy the dist folder which is around 10mb after running ng build --prod. In t ...

Firestore in a Next.js app keeps attempting to start emulators even though it is already running

Does anyone have experience dealing with issues related to Firebase and its emulators? I keep encountering the following error during hot reload: FirebaseError: Firestore has already been started and its settings can no longer be changed. You can only mo ...

Endless Loading in Node.js on Google App Engine

I have deployed a standard nodejs app (free tier) using cloud shell, but when I try to access https://[ID].du.r.appspot.com/ , it keeps loading indefinitely. app.js: const express = require('express'); const path = require('path'); const app = express(); ...

Need a key file from a specific path within a Google Cloud Function

I'm working with Google Cloud Functions that require a JSON key file. Here is an example: const SERVICE_ACCOUNT_EMAIL = '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="41382e34331e322433372822241e2022222e342f351e242 ...

Customizing build dependencies in Google App Engine allows developers to tailor their applications to

For my application to be built, it requires cmake, libx11-dev, and libpng-dev. I found guidance in this documentation suggesting that these dependencies can be listed for the Google App Engine platform, but I am unsure of the process. While I managed to ...

Dealing with Cross-Origin Resource Sharing (CORS) problem when using Google Cloud Storage Signed

I'm looking to empower artist clients to easily upload images to Cloud Storage by utilizing Signed URLs. Here's the backend script used to fetch the signed URL, which resides behind a Google Cloud load balancer: (Does the presence of a load balancer have ...

What is the process for linking a NodeJS app on Google App Engine to MongoDB hosted on Compute Engine?

Looking for advice on connecting a Google App Engine project written in NodeJS to a MongoDB server hosted in Compute Engine. Since the App Engine has a dynamic IP and can't be added to the white list of Compute Engine, what is the best way to establis ...

Error: The identifier 'socket' has already been declared in the client file and is causing a SyntaxError

Recently, I've developed a React application that leverages socket.io to establish a connection with the Google Cloud Platform. However, upon running both the client and server components, an error is encountered in the client file: Uncaught SyntaxError: ...

Is it possible to run a Python script on a static app engine website?

Suppose I have a static website hosted on App Engine using a Python runtime. If I wish to make a jQuery AJAX call to a single Python script to retrieve some data, would I need to integrate the entire site into a Python framework just to execute that file? ...

What is causing the Firebase emulator to crash when I run my Express code?

This project is utilizing express.js along with firebase. Whenever attempting to access a different file containing routes, it results in failure. Instead of successful emulation, an error is thrown when running this code: const functions = require(" ...

Retrieve a specific value from an array within Firestore

I am facing an issue where I can only retrieve the values I need from the array by adding a specific string like "اقلام" or "سبورة". However, I want the value to be passed as a prop from another component or screen. Is there a way to resolve this ...

Is it possible to use an external table in Node.js to query cloud storage?

Is it possible to query cloud storage using the external table concept in Node.js? I found some code in Python that achieves this functionality, but I would prefer to implement the same logic in Node.js. Is there a way to do this? ...

Using Python to Generate Folders within a Google Cloud Storage Bucket

Currently, I am attempting to utilize the Google Cloud Storage Python client library to generate a new bucket that contains two empty folders. Despite referencing the Python client library API for GCS (https://google-cloud-python.readthedocs.io/en/latest/s ...

Getting an error message "idpiframe_initialization_failed" while trying to login with Google in a React.js application

I recently integrated Login with Google into my react.js app. I followed the steps outlined in a tutorial video which can be found here: . Even though I registered my app with my client Id on Google Cloud Platform under the "Authorised JavaScript origins" ...

Is it necessary to verify the apiKey or does the authentication of the user suffice for an HTTPS callable function?

I'm interested in creating a cloud function that can be executed from both the client and the backend. After exploring the documentation, I learned that an HTTPS callable function will automatically include user authentication data, accessible through the ...

Encountering errors: Time-zone discrepancies arise when making API calls from AngularJS and querying results from Firebase using NodeJS

Whenever I try to query with a date range, the results returned are incorrect. I have implemented DateRangePicker jQuery for selecting both date and time ranges. After that, I make an API call and send my date/Moment JS object to my Node.js API where I q ...

Evaluate software on a local environment for both Google Cloud and Azure

Is there a method to locally test applications designed for Google Cloud or Azure on a computer, comparable to the Localstack Docker image used for AWS? Your help is greatly appreciated! ...

Using the Gmail API to retrieve the access token details by extracting the "code" parameter from the URL of a pop-up window

I am currently in the process of authenticating Gmail using OAuth2 for my web application. Upon receiving a URL from the server, the client opens a pop-up window with the following code: var win = window.open(data.google_oauth_url, `<h1>Gmail ...

Navigation guard error: Caught in an infinite redirect loop

I have set up a new vue3 router and configured different routes: const routes = [ { path: "/", name: "home", component: HomeView, }, { path: "/about", name: "about", component: () => ...

Frontend Will Not Be Able to Access Cloud Run Environment Variables when in Production

My current setup involves using docker to build an image through Google Cloud Build and Google Cloud Registry. I have Pub/Sub triggers in place to populate Cloud Run instances with new Docker images upon a successful build. The issue I am facing is that m ...

Why does my React app on GCP Storage show a 'Not Found' error when using 'Fetch as Google'?

I have successfully built my React app using create-react-app and then uploaded it to GCP Storage. I configured the website settings (Main page and 404 page) to index.html. This is the current folder structure: ├── asset-manifest.json ├── fav ...

Is it possible to deploy a Google App Engine service that relies on a local npm package?

I am currently navigating my way through Google Cloud and facing challenges with deploying a Google App Engine service that relies on a local sibling dependency. My project structure follows this format (using TypeScript, nestJS, React): -frontend app ...

Setting up a Node + MongoDB API in the Cloud on either AWS or GCP

Currently, I am developing a Node.js + MongoDB API that is hosted on a virtual machine on Google Cloud Platform. The data for the API is stored in a MongoDB instance running on the same VM. I am wondering if it is advisable to run a local MongoDB instance ...

Generate a compressed file from a readable source, insert a new document, and transfer the output

The objective is to obtain an archive from the client, include a file, and transfer it to Cloud Storage without generating a temporary file. Both the client and server utilize the archiver library. The issue with the code snippet provided is that the file ...

Encountering a 503 error after deploying Flask on CloudRun

I encountered an issue while trying to deploy a simple Flask app that utilizes Google Bucket. Upon deployment, I kept getting error 503 - Service Unavailable. I'm unsure if I missed something crucial or what exactly I might be doing wrong. Any assistance ...

Tips for creating TypeScript Google Cloud Functions using webpack

I'm currently facing a challenge while coding a Google Cloud Function using TypeScript. The concept involves having handler functions defined for various Cloud Functions in separate files within the source repository, along with some code that is shar ...

Forgetting a crucial step in the process of updating a static ReactJS website on Google Cloud Platform

Replacing the contents in the bucket associated with an app may not update the app as expected. I recently deployed a site where I created a bucket, a directory, and deployed a React app using commands like: gsutil rsync -r gs://bucket-name ./app-name T ...

Troubleshooting Deployment Issues on Google Cloud Platform's App Engine - Chunk Loading Error Detected

Our web application frontend is built using React and deployed on Google Cloud Platform App Engine Standard. We have implemented code splitting, where each page is loaded upon user navigation. While the application is performing well, we have encountered ...

Improving Firebase function performance by utilizing Express.js for reducing cold start times

Exploring ways to enhance cold start times for my Firebase functions led me to discover an article that focused on maximizing performance and readability using TypeScript with the base usage of the http onRequest function. However, I was eager to implement ...

Is the commented out cron task in GAE being executed?

Recently, I was involved in a project that hosts its application on GAE. During a late-night deployment to the QA server (also on GAE), a cron job in the cron.yaml file was commented out. To my surprise, the cron task ran as soon as the deployment was com ...

Sorry, but you can only use one 'in' filter in your query

this.ref.collection("users", ref => ref.where("uid1","in", [reciverId, senderId]) .where("uid2","in", [reciverId, senderId])) throws an error stating: "Invalid query. Multiple 'in' filters cannot be used." ...

Creating a DockerFile for Next.js deployment in Google Cloud Build on GCP

This Dockerfile is based on the recommendations provided in the official documentation. # To ensure dependencies are installed only when necessary FROM node:alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a ...

Struggling to retrieve data from GCP DataStore despite closely following the guidance provided by Google documentation

I attempted to upsert a record in DataStore and then retrieve it based on Google's official documentation. While the upsert operation was successful, I encountered issues with the retrieval process. Could it be possible that the documentation is outdated? ...

In order to access the latest version on Google Cloud (App Engine), I must first clear my cookies

Recently, I started using Google Cloud to host my React application. The version of React that I am using is "16.8.3" (although I don't think it's relevant to my issue). The problem arises when I make some updates to the application by running 'npm run bu ...

Issue encountered during deployment on Google App Engine

I've been encountering an issue while trying to deploy my Node.js application with MySQL Backend to Google App Engine. I am utilizing Sequelize ORM and have both the Cloud SQL Instance and App Engine within the same project. However, upon attempting t ...

Firebase Identity Platform Error: Invalid Refresh Token (auth/invalid-refresh-token)

Currently, I am in the process of enhancing an existing Firebase Auth project by transitioning to Identity Platform to take advantage of multi-tenancy features. During my testing phase on the local emulator, I encountered some challenges: Users are not a ...

Organizing Firebase functions: Managing multiple functions and dependencies

Objective I aim to gain a deeper understanding of how the firebase CLI manages the deployment process for multiple firebase functions, each stored in different files, and how it handles dependencies that are specific to certain functions. Situation If I ...

Setting up a Health check endpoint in Next.js: A step-by-step guide

I currently have an application deployed on Kubernetes (Google Cloud). To ensure the deployment runs smoothly, it must return a 200 status response to endpoints "/healthz" and "/". In my Express server, I've set up a route that handles this like so: ...

Storing extensive volumes of searchable JSON data

I'm in search of a database solution that can meet the following requirements: Store flat, random JSON structures separated by table names (e.g. random_json_table_1, random_json_table_2). Handle a high volume of insert operations (over 10,000 per se ...

Encountering a network error while trying to sign into Google Cloud using Selenium automation

In my current project, I am utilizing Selenium and Selenium Wire. The task at hand involves creating flows to log into Google Cloud portals. The process involves entering my Google Cloud email, clicking on "continue" in the Google sign-in page, and then s ...

Avoiding conflicts in user registration with Firebase

I'm currently working on a Firebase/Next.js application deployed via Firebase hosting. In this project, I am focused on developing a user registration feature. When a new user registers, they are assigned a document containing their data, with one of ...

Encountering issues while trying to deploy a Next JS 13 application on Google Cloud Platform's

Everything was functioning properly with Next version 12, however upon upgrading to Next 13 I encountered the following error. and current node version: "18.x.x" Next Js version: "13.2.1" Step #2: /app/node_modules/next/dist/build/index ...

Tips for maintaining a deployed static ReactJS site on the Google Cloud Platform

After completing the instructions in this tutorial, I have managed to deploy a ReactJS website. Now, my query is regarding the process of modifying or updating the site with a new build/version. ...

There seems to be an issue with Firebase authentication on firebase-admin in node.js. Your client is being denied permission to access the URL "system.gserviceaccount.com" from the server

Issue I've been utilizing Firebase auth on my client and using firebase-admin to verify on the server. It was functioning well until I decided to migrate to a different server, which caused it to stop working. The crucial part of the error message i ...

Utilizing cloud functions to distort an inappropriate image

I have a requirement to analyze any uploaded image for inappropriate content and blur it if necessary. The log this image is inappropriate indicates that the detection process is working correctly. However, I am not able to see any further logs which sugg ...

Struggling with slow response times when interacting with Firestore in Firebase Cloud Functions?

I am currently experiencing performance issues with a simple Cloud Function in Firebase. This function is responsible for taking JSON data through an HTTP POST request and storing it in a Firestore collection. Despite being assigned 512MB of memory, the pe ...

Problems with MIME types on Google Cloud App Engine

I have a NodeJS application hosted on Google Cloud App Engine. It's built using Vite & Vue3 with Vite's native SSR. Everything runs smoothly when accessing the app through the google subdomain: <domain>.appspot.com. However, I encounter an ...

Using the Firebase Admin SDK for user creation on the server side

**While working on my CRUD project, I encountered an issue where the admin needed to add a user in the documentation as well as in the authentication process. Using the normal SDK would simply replace the current user, so I attempted to use the admin SDK. ...

Google Cloud's implementation of the "Vue+S3+Lambda" architecture

My VueJs single page website currently has very few transactions, prompting me to explore implementing it with a serverless architecture. One recommended approach for a basic Web Application on AWS includes: Vue App uploaded on AWS S3 Backend connection ...

Storing data into Firebase database using a cloud function API

Below is a Firebase cloud function I have created that can be accessed through a REST API. My aim is to save the user-submitted values from the front end via the 'Web service URL': 1.) The data should be stored in the Firebase-realtime database. 2.) I c ...

The Ministry of electronics and information technology has mandated the blocking of this website under the IT Act of 2000, in accordance with stack overflow

Our web application utilizes JAVA with the latest updates AngularJs framework Cloudflare for domain mapping GCP load balancing services We have encountered a message stating: "The website has been blocked by order of Ministry of electronics and inf ...

How to Upgrade Node and NPM on Google Compute Engine?

Currently, my Google Compute Engine VM is utilizing a Node.js v6.16 image. I am interested in updating to the latest version as I need async functions which are not supported in v6. How can I go about updating this? ...

Which service is most recommended for hosting a GCP FTP Node application?

Let me give you some background on our current project. We have weather and soil monitoring stations scattered across the country collecting data that is then uploaded to a server via FTP for processing. Although this server is not currently in the GCP, we ...

The most recent update of NextJS is currently unable to deploy due to an issue with the error message "The named export 'useContext' was not located."

Below is the package.json I am currently using: { "dependencies": { "@nextui-org/react": "^2.2.8", "axios": "^1.6.0", "framer-motion": "^10.16.4", "next": "latest", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependenci ...

Data merging in Firebase 9 and Vue 3 is not functioning properly

I am facing an issue with merging data in my firebase database. I consulted the documentation at https://firebase.google.com/docs/firestore/manage-data/add-data for guidance. After attempting to merge data using setDoc, I encountered an error (Uncaught Ty ...

Automatically deploy an Express.js server to Google Compute Engine with PM2

I am currently managing a virtual machine that is running pm2 on Google Compute Engine. What steps do I need to take in order to automate the deployment of an express.js server from a GitHub repository? I have generated an SSH key for user login and hav ...

Can a NodeJs REST API be deployed on the Google Cloud Platform?

I'm in the process of building a REST API with NodeJS. What are some recommended options for hosting or deploying my API? If Google Cloud Platform is not feasible, what other alternatives would you suggest? ...

Creating a Docker image for CoreOS (CP100A Training)

I am currently working on the labs for "Google Cloud Platform fundamentals" and encountering some issues. Every time I try to use a CoreOS instance to launch a Docker instance, I encounter an error. For instance, in the Cloud SQL lab, there is a step wher ...

Creating specialized exception classes for use in Firestore Callable Functions and VueJS deployments

Up to this point, I have experimented with different approaches. X class CustomError extends Error { constructor(message, code) { super(message); this.code = code; } } exports.CustomError = CustomError; VueJS is giving an error "exports is n ...

Inquiries regarding JSON and Google Cloud Platform

Currently, I am working on a code to generate a json file that can be accessed via an endpoint. The structure of the file includes the connection details for the endpoint along with some specific data. %%writefile default-pred.json { PROJECT_ID:"msd ...

Error when trying to use Firebase CLI console: Module @google-cloud/tasks cannot be located

My index.js file has a dependency on Cloud Tasks: const {CloudTasksClient} = require("@google-cloud/tasks"). However, when attempting to deploy my cloud function using Tasks, I encountered the error: Detailed stack trace: Error: Cannot find module '@g ...

What is the best way to time a Google Cloud Function to execute at the exact second?

In my attempt to schedule a cloud function using the Pub/Sub trigger method along with crontabs, I realized that it only provides granularity to the nearest minute. However, for my specific application - which involves working with trades at precise time ...