Questions tagged [google-app-engine]

Google App Engine is an extraordinary cloud computing solution that enables users to effortlessly host their web applications within Google's highly efficient and secure data centers. As a leading Platform as a Service (PaaS) offering, it supports multiple programming languages such as Java, Python, Go, Node.js, and PHP in its expansive standard environment. Furthermore, this remarkable technology offers support for various other languages alongside flexible docker-based custom runtimes. With Google App Engine, you can explore limitless possibilities for your web application hosting needs.

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 ...

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 ...

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 ...

Using package.json to pass variables to the gcp-build method during deployment on Google App Engine

After successfully deploying a Next.js site to Google App Engine, I am trying to figure out how to pass an env_variable to app.yaml in order to set up a production and staging build. Despite going through the GAE documentation, I can't seem to find a ...

Setting up your YAML configuration to utilize both PHP and Python with AJAX in a unified project on App Engine

Here is my project idea https://i.stack.imgur.com/oGOam.jpg $.ajax({ url: '../server/python/python_file.py', dataType: 'json', type: 'POST', success:function(data) { //Perform additional AJAX requests using PHP files }, error: function(e ...

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 ...

How can we utilize an ajax call to upload images instead of form fields when using the blobstore service on GAE?

Is it possible to upload an image using an AJAX call instead of form fields when utilizing the blobstore service of GAE? I desire to regain control over the page without causing a reload, specifically where the upload file input is located. This is why I ...

Installing third party libraries in Node.js on Google Cloud involves using the npm package manager

As I attempt to deploy my code on Google Cloud, everything runs smoothly during testing. However, when I execute the command: gcloud app deploy An error is displayed. Specifically, I am trying to install Node.js canvas which necessitates certain depend ...

The saving of data in the session is not working as expected

Currently, I am in the process of building a web application with Google App Engine and Python. I have encountered an unusual issue that has left me stumped on how to resolve it and what might be causing it. The problem arises when I fill out a form and se ...

Encountering Error: ImportError when working with Google App Engine locally: Module google.cloud.bigquery not found

Just like the title suggests. I have included the following code in appengine_config.py, but it doesn't seem to be working: # appengine_config.py from google.appengine.ext import vendor # Add any libraries installed in the "lib" folder. vendor.add('lib' ...

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 ...

What is the process for loading a webpage into another webpage with google app engine?

Hey there, I'm a newbie to app engine and could really use some help, I'm looking to replicate the functionality of the jquery load function on the server side within a RequestHandler's get() method. Currently, I have a page that looks some ...

Image upload to local blob store encountered an Error 404

Recently, I delved into the world of Python app engine development and attempted to run the source code from https://cloud.google.com/appengine/docs/python/blobstore/#Python_Complete_sample_application. However, upon selecting an image file and clicking s ...

Step-by-step guide on deploying an Angular and Express project to Google App Engine

I am in the process of deploying my app to Google App Engine. I have already set up App Engine and installed gcloud on my local machine. While I have been successful in deploying some projects, I have only done so for Angular applications. My goal now is ...

Google AppEngine Endpoints encountered an error: Unable to retrieve service configuration (HTTP status code 404)

I am currently following the instructions outlined in the Quickstart guide. While working on this, I came across another query related to the same topic. I made sure that the env_variables section in my app.yaml file contains the correct values for ENDPO ...

The string retrieved from the server is showing special characters as "?"

I am facing an issue with my servlet where it retrieves data from Cloud SQL, converts it to a Java object, and then converts it to JSON before appending it to the response writer. The problem arises when the data contains special characters like "รง" and ...

Guide to setting a limit on image size using get_serving_url

When working with images, I noticed that some exceed the desired maximum width and height. Is there a method to specify the image size limit using get_serving_url()? ...

Google NDB: Including a new entity without an existing parent entity

Currently, I am developing a web application using Google App Engine (Python / Webapp2) and Google NDB Datastore. To my surprise, when trying to add a new entity with the parent key of a non-existent entity, an exception was not thrown - instead, the entit ...

What is causing the ImportError: No module named apiclient.discovery error in my Python App Engine application utilizing the Translate API?

I encountered an issue in Google App Engine's Python while using Google Translate API, I am unsure how to resolve it, <module> from apiclient.discovery import build ImportError: No module named apiclient.discovery I plan to configure the environment ...

Enable access for a GAE application to a Google API using the google-api-python-client library

Currently, I am in the process of developing a Google App Engine application where users can fill out an online form. Depending on how the form is filled out, a calendar event is created in a specific Google Calendar. My concern lies with the authorization ...

Launching a web service on my Google App Engine platform

We developed a basic application and successfully ran it locally using GoogleAppEngineLauncher (GAEL). After that, we deployed the application to our appid with GAEL again, and everything was working smoothly. Next, we created a web service. We tested it ...

What is the best way to display specific items in a bootstrap navbar by utilizing cookies with Python?

Below is the structure of my bootstrap navbar which is present in my base template: <ul class="nav navbar-nav"> <li><a href="/">Home</a></li> <li><a href="/about">About</a></li> <li>& ...

What is the process for making an API call in Python with Google App Engine (GAE)?

I've developed a basic web form using Google App Engine with a reCAPTCHA component included. The component is visible on the webpage, but I'm struggling to understand how to execute the API call in my code. def post(self): challenge = self.request.ge ...

What occurs when the instruction to deploy a Node.js application is given using the command gcloud app deploy --version v1?

Could someone provide insight on gcloud app deploy? I attempted to deploy an application and encountered the following error: ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred while creating a Google Cloud Storage bucket. Appre ...

Does a crash on the development server result in wiping out the datastore?

While testing my app on the development server, I've noticed that manually interrupting a request sometimes results in clearing the datastore. This includes models that were not even modified by the interrupted request, such as users, etc. Any thoughts on ...

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 ...

The Next.js image feature encounters a 500 error when in a production environment

I recently deployed my Next.js app on GAE and encountered an issue where none of the images located in the public folder were properly served. Every time I tried to access them, a 500 error occurred, accompanied by this specific error message found upon re ...

"Learn the process of sending an image from an AngularJS application to a Google endpoint through the Java Blobstore

I'm currently working on uploading an image from AngularJS to Google App Engine using the Java API in Datastore. However, I am struggling to find the correct code for uploading images to Blobstore through the Java API. If anyone could kindly share their c ...

Google Cloud Endpoints API Encounter 404 Error

Scenario Currently, my setup involves AppEngine Cloud Endpoints using a Bootstrap JavaScript UI along with a Google SQL Datastore. Issue The problem arises when the Javascript tries to call gapi.client.load and receives a 404 error. Surprisingly, the ...

Using Django with Google App Engine's Adsense Integration

Facing an issue with Django on Google App Engine. Successfully designed HTML templates for my web application and imported them into Django using its template system. However, encountering a problem with Google AdSense. The AdSense banner shows up on the ...

What causes the duplication of logs in App Engine (Node.js)?

Reason for Duplicate Third and Fourth Logs https://i.stack.imgur.com/Bj4pI.png Confirmation of Running Single Instance: app.yaml runtime: nodejs10 manual_scaling: instances: 1 https://i.stack.imgur.com/vpfTm.png Log Calls Reference: server.js htt ...

Dealing with the HTTP 413 Request Entity Too Large error within a Node JS Project on Google App Engine

My backend app is currently deployed on GAE. One of the features it offers is an API that allows users to upload files to a GCS bucket. I recently encountered an issue when trying to upload a file larger than 50mb, receiving an error message stating 413 Re ...

Utilize Javascript to perform operations on ndb.key()

When working with my application, I encounter keys that are created within a Python system and written to Google Datastore. To access the corresponding data, I require the IDs of these items, which are contained in the 'key' string. Unfortunately, since ...

Could Warmup Requests in NodeJS Lead to Data Corruption?

I currently have a running node server in App Engine standard with a custom domain and everything is functioning smoothly. However, whenever I deploy a new version, there is a noticeable increase in latency as the old instances are halted and new ones are ...

Formatting an HTTP error response in webapp2 using JSON

I am currently working with webapp2 on App Engine for development purposes. My goal is to send a customized JSON-formatted response when an error occurs. For instance, if the length of a request exceeds a certain threshold, I want to return an HTTP 400 sta ...

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, ...

Retrieving IAM policy for App Engine resource

In my GCP project, I have an App Engine app resource. I currently manage users and roles on the App Engine app using Identity-Aware Proxy in the console. Now, I want to programmatically manage users in IAP. At the moment, I am able to retrieve the IAM pol ...

Storing Objects with AppEngine Serialization

Recently, I encountered a challenge when trying to serialize an object in XML for a client application on App Engine. Initially, I turned to Django 1.2 serialization as outlined in the documentation: http://docs.djangoproject.com/en/1.2/topics/serializati ...

Transitioning to HTTPS for a stationary React application hosted on the Google App Engine

I have a nodejs app hosted in GAE flexible environment. We've successfully set up the google-managed SSL and the https route is working as expected. However, due to serving the application statically, we are facing challenges in enforcing a redirect ...

Error message on Google App Engine with Django: "Instance names are not allowed to have the ':' symbol."

Currently, I am following a tutorial on how to run a Django project on Google AppEngine. The specific tutorial I am using can be found here. At this point, I have reached the section where I need to create a Cloud SQL instance. As per the instructions: Now ...

The term "ArrayList HashMap" does not have a defined

Having trouble understanding why I'm encountering this error message "ArrayList<HashMap<String,String>>, int, String[], int[]) is undefined" // THE ERROR IS RIGHT HERE TO ListAdapter adapter = new SimpleAdapter(this, contactLi ...

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(); ...

How can data be inserted into the Google App Engine database using a remote executable through programming?

I am interested in automatically populating and updating data in my Google Appengine database on a regular basis. I am looking to develop a program using Java and Python that can establish connection with my GAE service and feed information into my databa ...

There are no URLMap entries detected in the application configuration

I have been following the instructions on this link to deploy my node.js application on Google App Engine Standard: https://cloud.google.com/appengine/docs/standard/nodejs/quickstart However, when I try to deploy, I encounter the following error message: ...

An effective method for adding information to a REDIS hash

My current computing process involves storing the results in the REDIS database before transferring them to the main database. At the moment, I handle operations in batches of 10k items per chunk using a separate GAE instance (single-threaded computing wi ...

Launch a Next.JS web application utilizing Yarn on Google App Engine

I'm in the process of deploying a web application that was constructed using templates provided by a friend. I don't have much experience with React/NextJS frameworks, so I'm uncertain about the distinctions between yarn and npx. When running yarn next-bu ...

The debugger successfully displayed the HTML page in the POST response, but it was not visible in the browser when

Having an issue with my connection form that is sending a Post request to a servlet. The servlet then forwards the request to different pages after performing some tests such as password and email verification of the user. However, the problem I am facing ...

Flask decorator for rendering JSON views on Google App Engine

Currently, I am attempting to create a view rendering decorator for JSON in Flask by referring to this specific code snippet: http://flask.pocoo.org/snippets/18/ My challenge lies in the necessity of serializing GAE models as JSON, which the regular jsoni ...

Easily link Facebook with your Google App Engine project using Python

Looking for a streamlined and effective demonstration of integrating Facebook connect into a Google App Engine application. Currently building a web application and aiming to utilize Facebook connect as the main login method. ...

Creating an expandable discussion area (part II)

After checking out this query that was posted earlier, I am interested in implementing a similar feature using AJAX to load the comment box without having to refresh the entire page. My platform of choice is Google App Engine with Python as the primary lan ...

Guide to incorporate a URL handler for a static HTML page in the app.yaml file while running an Angular application

I'm currently in the process of setting up a static HTML page to be displayed after a user unsubscribes from a mailing list. This page needs to be hosted on the same Google App Engine as my primary Angular 7 application. However, when I try to access ...

Failed cron job in Google App Engine Python environments is causing issues

I am encountering an issue with a script running on Google Appengine that is triggered every 20 minutes by the cron.yaml file. The script runs successfully when tested locally on my machine and even when manually accessed online, but fails to complete when ...

I am running into an issue where the Google App Engine standard is not able to compress my Next.js/Express

I am currently exploring solutions to enable compression on the output of my Next.js/Node.js/Express application when deployed on Google App Engine (standard version). It appears that the issue lies in the fact that: 1) Google's load balancer strips away ...

What are the steps to integrate gaeunit 2.0a with my Django application?

I'm currently in the process of setting up unit testing on Google App Engine for my web application. After downloading the necessary file from this link, I followed the instructions provided in the readme. As instructed, I copied the 'gaeunit&ap ...

Is it possible to retrieve a JSON response by making a jQuery.ajax request to an appengine URL?

Attempting to retrieve response data via ajax from the following URL: http://recipesid.appspot.com/api.user?method=user.query&[email protected] Encountering issues when trying to run the code. Please assist in resolving this problem. $.ajax({ ...

Received a 'PDOException' error stating 'SQLSTATE[HY000] [2002] Connection timed out' while attempting to establish a connection with Google Cloud SQL

Hello everyone, I have been attempting to establish a connection with Google Cloud SQL from an external website. I have authorized the server's IP in Google Cloud under Instance -> Access Control -> Authorization The instance has been assigned an IP ad ...

Google App Engine - Passing server side data to the client side: Tips and Tricks

When working with Google App Engine, there is a specific object or model called "Car" that resides on the server. This "Car" object possesses various properties such as "Model", "Year", and more. The task at hand involves transmitting information of the "C ...

Which is faster: serving server-generated HTML or rendering templates?

Currently, I am utilizing Google App Engine's version of Django templates with Python. I am curious about the performance disparity between incorporating loops in the template as opposed to including them in the Python page handlers. For instance, here i ...

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? ...

Having trouble deploying my Next.js app to GAE, facing a build error where the 'pages' folder cannot be found

Last year, I successfully deployed a project to GAE using the gcloud CLI and an app.yaml file without any issues. Recently, I needed to add a new page to the app. After creating the new page folder /newpage and an index.tsx file inside it, I tested the pro ...

GAE/P: Streamlining the transition to NDB

After making the transition from db to ndb, I've encountered more challenges than I had expected. I have converted my ReferenceProperty to KeyProperty, but now I need to add explicit get() calls everywhere a ReferenceProperty was used since it was previou ...

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 ...

What strategies can be implemented to prevent downtime in the event of NPM crashing? (specifically with regards to GC App Engine Deployment)

Recently, I experienced the frustration of encountering 429 errors when trying to access NPM servers. Since Google's App Engine relies on an NPM install for server deployment, this issue prevented me from deploying updates to our dev environment for a prol ...

Working with PyCrypto on Google App Engine using Python 2.7

What is the most effective method for securing a symmetric key that must be utilized in code on Google Appengine? Our program is built using Python 2.7. UPDATE: We have certain database fields that require protection and are accessed within the code, but ...

Why is the upload handler not aligning with GAE Blobstore?

Following the documentation provided by GAE, I have implemented an upload handler to upload blobstore. However, when I select a file on my computer and click the Submit button on the HTML page, it displays 'The url "/upload" does not match any handlers.' ...

The process of saving a model in Django

It has come to my attention that there is no assurance that the database will be updated synchronously following a call to save() on a model. To test this, I conducted a simple experiment by sending an ajax call to the method below: def save(request, id) ...

Python AssertionError: The argument passed to the write() function in GAE must be a

Currently, I am utilizing Sublime Text 2 as my primary editor to develop a brand new Google App Engine project. UPDATE: While testing this code via localhost, I encountered an issue when accessing the app on appspot: Status: 500 Internal Server Error ...

Encountering issues with deploying Node.js app on GAE

My node.js app deployment to GAE is giving me trouble. The app is simple, connecting to Firebase to update a value. But every time I attempt to deploy, it fails. Works fine locally. I decided to start fresh, deleted my project, and deployed the default & ...

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 ...

Begin the Development Server for PHP on Google App Engine with these steps

While following the PHP Hello World example, I encountered an issue. I am running a Windows7 command prompt and entered the following command: google_appenginedev_appserver.py --php_executable_path=C:phpphp-cgi.exe C:helloworld Instead of launch ...

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 ...

AngularJS: accessing remote systems - a guide

I am looking to explain my objective clearly I need guidance on how to establish a remote desktop connection from my Angular.js application to a windows application running system. The server I am using is Google App Engine. My current ideas: The Windo ...

Python Google API client: Issues with log level and debug level functionality not functioning as expected

During the creation of a simple Python app on AppEngine, I came across this helpful page: https://developers.google.com/api-client-library/python/guide/logging The page suggests using the following code to set the log level: import logging logger = logg ...

Establishing the framework for djangoappengine

I've been attempting to configure djangoappengine. After cloning the code from git / bitbucket according to the instructions provided here (following various links on Google), I duplicated django-testapp and modified it for my own project. However, w ...

App Engine serves up JSON data using JsonProperty

I appreciate how the JsonProperty in Python seamlessly encodes data into JSON when saving to the database and decodes it upon retrieval. However, I am seeking a solution to directly send raw JSON data to a web browser without the need for further encodin ...