Newest 'google-app-engine' Questions

Q&A for professional and enthusiast programmers

How to structure and run GAE project with both standard and flexible services

Google documentation says: ... if you have an existing web application running in the standard environment and you want to add a new feature to convert files to PDFs, you can write a separate ...

ConfigureRemoteApiForOAuth: invalid grant after 'gcloud auth login'

Today my oauth token is expired but I am unable to regenerate it. I have a command line tool to interact with the data store on Google Cloud Platform to carry out some support tasks. Here are the ...

Google Cloud Platform Console - Each visit to Stackdriver/Logging page results in an error being reported

I came across an odd behaviour of Google Cloud Platform Console. It seems that each visit to "Stackdriver" -> "Logging" produces an error. Unfortunately, this error is only manifested by incrementing ...

Which library for Non linear Conjugate Gradient on GAE for python? [on hold]

I do not want to write a Non linear CG implementation on my own. As far as I know, GAE(python) supports numpy but does not support scipy(which has optimization). I did not come across a pure python ...

Linking to entity from list

I have a Consults page that lists consults in the datastore. The list loop is like this: {% for consult in consults %} <tr> <td><a href="consults/#">{{ consult.consult_date }}<...

How to define entity property with list of values

I have a consult_status property for my Consults entity. As defined in the model: consult_status = ndb.StringProperty() # Consult status: (Pending, Completed, Cancelled) As seen in the comment my ...

Using ReactJS with Jinja2 and Webapp2

I am working on a project in which i am using the react js with Webapp2. I am trying to use jinja2 in react component. It compiles successfully but when i actually load the webpage. It gives error in ...

How to unindex lists in Objectify?

Why is it not possible to unindex a list of an objectify entity? @Entity public class Car { @Id String id; @Unindex List<Passenger> passengers; } public class Passenger { String ...

Django rest framework import error in on django.test.client

I'm using google app engine dev server for python running on mac os. The project I'm running is an appengine django project using djangae and django rest framework. Everything in the project works ...

Angular 2 subscribe is not working

I have a service in angular 2 private todosUrl = "http://localhost:3000/HelloWorld"; // URL to web API constructor (private http: Http) {} public getTodos(): Subscription { this.todoList =...

Datastore use case

RDMS guy here. Let's say that I have two entities and will have to join them and filter the join. In RDMB SQL it would be something like: select * from entity1 e1, entity2 e2 where e1.id = e2.fk_id ...

failed to resolve: com.google.firebase:firebase-database:10.2.0

I am creating a new project and trying to implement some features from googles Fire base dependencies such as compile 'com.google.firebase:firebase-database:10.2.0, classpath 'com.google.gms:...

How to make rss feed into the java webapp on GAE?

I have prepared the servlet according to https://rometools.github.io/rome/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.html example. However,...

Restricting Google AppEngine Endpoints Private API with a Key

Is there a way to restrict a private API built for a Mobile App to just the Mobile App? I would like to NOT restrict based on a particular User ID (OAUTH). I am wondering if there's a way to restrict ...

GAE: 30-40 Second Queries to Cloud SQL

I am running a Google App Engine Java web application with Spring, Hibernate and MySQL (Cloud SQL). Locally all my queries take about 500ms each but once I deploy my app some queries can take as long ...

Upload a Java and node.js project to Google AppEngine at once

At first I have a Java-Module set up in AndroidStudio that I upload to my GoogleAppEngine server which works pretty good. (Android Studio - Build -Deploy Module to Google App Engine) Now I also want ...

Is Disabling equivalent to deleting Google AppEngine API from the Project?

I deployed API with a different name earlier. This API shows as a different API, under my API Manager Dashboard. I disabled the old API for now. Does this have the same effect as deleting this API?

Custom runtime for non-flexible environment app?

I don't think that my gae python app has a flexible environment because I created it many years ago. Now I want to try and create a module that has another runtime than python and keep the python app ...

Communicating between google app engine services

My project structure looks like below, . ├── app │   ├── api │   ├── models │   ├── services │   │   └── lib | | |__ worker.yaml | | |__ worker.py | |_ main.py |_ app.yaml I'm trying to ...

Is it possible to use google appengine to receive emails with custom domain with wildcard prefix?

We are getting mail into google appengine for anything@myappname.appspotmail.com I would like to customize that to anything@mydomain.com anything is wildcard name Is it possible to use appengine ...

Appengine Communications link failure during commit(). Transaction resolution unknown

I have an Google AppEngine project connected to Google Cloud Sql. I found some error on my appengine stackdriver logs. I report the stack java error after. I don't found any information about this ...

How to organise and structure a custom Python library and multiple clients

I have written a few Python classes that exist in their own directory. mylib/ __init__.py a.py b.py I've also written two clients that use the library: Google AppEngine (in the API directory)...

Disable logging of Firebase Database with admin SDK node.js on GAE Flex

I have a node server with the Firebase Admin SDK running in the Google App Engine Flex environment. It runs really well. However, trying to find anything in the logs if you want to debug is a ...

How to download video from google cloud storage using app engine Python?

I have used gsutil to cp video from embedded board to google cloud storage. I am able to list all the contents of bucket, able to get text file, image file url; But I do not know how to get videos ...

Authenticate with a backend server Java

I have an android app while login it generates the idtoken GoogleSignInAccount acct = result.getSignInAccount(); String idToken = acct.getIdToken(); Above ID token is json web token which should be ...

com.google.api.config.ServiceConfigSupplier - Failed to fetch default config version for service (only on localhost)

I'm using Cloud Endpoints Frameworks (2.0.1) for Java as part of my final year project and have been relatively successful with it so far. I don't have any problems when deploying to my appspot.com ...

secure path for serviceAccountKey.json for a Firebase project in Google App Engine Node.js app

I have a Firebase project that users share some content with consists of media and text. For Facebook to handle links properly shared content must have a pre-populated page (dynamically created on the ...

BadValueError: Expected bool

My form element is a checkbox as such: <input type="checkbox" class="form-check-input" name="opt_in"> The property is defined in the model as follows: patient_optin = ndb.BooleanProperty() ...

Verify Firebase idToken via Python

I'm using Firebase for the first time and am unable to verify that a user is authenticated from the Firebase idToken. I've attempted to use Google App Engine's example in flask: https://github.com/...

Android and Google end points authentication exception

I am trying to connect the Udacity Conference central android app to my app engine application on the google cloud. I am getting following exception com.google.api.client.googleapis.extensions....

Sharing code between modules in a GAE project

I'm structuring my GAE (flex) project as a number of services: - my-project/ - services/ - service_1/ - service_1.yaml - service_2/ - service_2.yaml I would now like to share ...

Using gcloud console for Google App Engine causes a Runtime error from metrics

I'm trying to use the gcloud console through the browser. When I clone my repository and start the dev server, I get a runtime error from metrics: $ dev_appserver.py $PWD Traceback (most recent call ...

Google App Engine Model Property Update

When I try to update my model from: class Submissions(ndb.Model): title = ndb.StringProperty(required = True) content = ndb....

App Engine Java Flex Environment and MySQL Second Generation are compatibles?

Anybody knows if the App Engine Java Flex Environment and MySQL Second Generation are compatibles? Already followed all the instructions to setup a project using the Java Flex Environment, until ...

Python - How to convert entity properties from form post

I am aware of how to convert the strings posted from my form to some of the common types, eg (Boolean and Integer): age = int(self.request.get("age")) #convert to integer opt_in = self.request.get("...

memcache wildcard search google cloud

Is the only way to get a key from the web console to search for the exact key name? I tried to do a wildcard search like this but it doesn't work:

file upload on google app engine using spring mvc webservice

I have requirement to upload file from android device to server.GAE is my backend server for storing my entities and files.I am using retrofit 2.0 for web service calls in android app.Following code ...

Resource usage increases abnormally in Google App Engine

I am using GAE for my product development. Now it is MVP version and in development phase. So the user traffic is still small. But today (14:00 27th Feb 2017 UTC+7) when I saw the statistics I ...

Google Cloud Endpoits v2 Dev server error

i clone and configured applictation backend example from github (https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/endpoints-frameworks-v2/backend) but don't working in ...

How to serve static files in Golang [duplicate]

I'm trying to serve static content in the Google App Engine. The SDK is installed and I have a project created in the Google App Engine, which I have successfully deployed. But I can not access the ...

Using DatastoreIO to save entities of different kinds to datastore in Dataflow

I am trying to write entities of different kinds to datastore using DatastoreIO.v1().write(). In my transform function UpsertStoreItemEntityFn extends DoFn<String, Entity I am creating 'Entity' ...

Google App Engine - increasing in Datastore operations

Today, we've been charged for the first time in Google App Engine, and the main cause seems to be Create, Read and Delete operations to the Datastore. I'm trying to figure out what cause this - or ...

How to add a cookie to HtmlUnit webclient on GAE

I want to add a cookie to a webclient, this code works as expected outside GAE: WebClient webClient = new WebClient(CHROME); webClient.addCookie("storepath=us/en", new URL("http://www.zara.com/"), ...

Unable to configure sub-domain to different Google App Engine Application

I currently have a domain registered in domains.google (Googles own registrar) and a google app engine configured to that domain. So that www.{domain}.com and {domain}.com both end up at the GAE's ...

LOAD DATA LOCAL INFILE from Google Storage / Google App Engine?

I need to run a process that will perform about 10,000 mysql inserts into a GoogleSQL instance. Normally, I would use a load data local infile query for this to avoid the script timing out, but my app ...

Avoiding duplicate tasks (or dealing with them) in task queue in Google App Engine

I have a service I've developed running on GAE. The application needs to 'tick' every 3 seconds to perform a bunch of calculations. It is a simulation-type game. I have a manually scaled instance ...

Referring a single Google datastore kind multiple times in another kind with ndb

I have the below 2 ndb models from endpoints_proto_datastore.ndb import EndpointsModel class Foo(EndpointsModel): attr1 = ndb.StringProperty(required=True) class Bar(EndpointsModel): attr1 =...

how do I delete multiple versions in an app on google cloud?

When I deploy a project I get this error INVALID_ARGUMENT: Your app may not have more than 15 versions. Please delete one of the existing versions before trying to create a new version. I also went ...

use single datastore for two separate projects

I am try to create the bank application in java using the google app engine with two different projects for the admin and customers but i need to maintain the single database for the two projects is ...

gcloud app deploy : This deployment has too many files

I got the below error, when I tried to deploy my GAE app through gcloud. Updating service [default]...failed. ERROR: (gcloud.app....
Translating... 0%