FAQ Database Discussion Community


Getting a 411 Length Required error when parameters are very long

java,angularjs,google-app-engine
I am executing a POST request with Angular JS against a Java servlet running on Google App Engine. The code works fine, unfortunately I've noticed that if one (or more) parameters are very long I get the following error: Error: Length Required POST requests require a Content-length header. This is...

I am working on small project with Google AppEngine (Python), tutored by Udacity. I am unable to render user comments to main page

python-2.7,google-app-engine,gae-datastore,jinja2
I am suppose to add forms to my HTML to allow users to add data (comments to my page) and also store the data via GAE-Datastore. I have been able to store the data but not able to get the user comments posted to the main page. Seperate code files:...

Flask Python - Pull information from google datastore and display on own url

python,google-app-engine,flask
This is my flask applicaion running on google app engine, the code below is a bit of my views.py file. All I'm trying to do is display the stored database information on it's own page with the URL being the ID. The top route works, but the bottom doesn't. @app.route('/')...

GAE Managed VMs: Possible to use C-based Python libraries with standard runtime?

python,google-app-engine
I'm building a background module for my app in Python 2.7, but it needs to use C-based external libraries such as OpenCV. While GAE only "directly" supports pure Python libraries, I understand that using a managed VM removes that constraint. What I'm not quite clear on, after reading the documentation,...

Fetching entities from datastore where Entity.key.IN([keys…])

database,google-app-engine,app-engine-ndb,datastore
I'm trying to fetch a long list of entities, and those entities all refer to one of a few different related entities. It's explained in the comments, but basically many "items" reference to a few "Company"s. I don't want to have to make multiple queries for each key in unique_key...

What is the lifespan of a private variable in an GAE Endpoint class?

java,google-app-engine,variables,google-cloud-endpoints
I have the following code for an instant messenger style app. public class MyEndpoint { private Integer numberOfConvos=0; ...} then I update it like this: @ApiMethod (name="createGroup") public myModel createGroup(@Named("profile") String profile){ numberOfConvos=numberOfConvos+1; } So everytime I make a new chat, I can make a unique and increasing ID. If...

Arguments to Endpoints method change order

android,google-app-engine,google-cloud-endpoints
I am using Google App Engine with Cloud Endpoints for a simple Android application. In the backend I have the following API method, deployed to GAE: @ApiMethod(name = "getGroupInfo", path = "groups") public GroupInfo getGroupInfo(@Named("session") String sessionString, @Named("groupID") String groupID) throws ForbiddenException { Logger.getAnonymousLogger().warning("Session string is: " + sessionString); Logger.getAnonymousLogger().warning("GroupID...

Relationships in the Datastore (One-to-Many)

python,google-app-engine
I was actually just wondering what the most efficient way to model a relationship of this kind would be in the google datastore. Say I have 'Users' and 'Projects'. A project may have many users (One-to-Many). Is there a better way over modelling it like this? class Users(ndb.Model): properties... class...

viewing google app engine Python logging messages in CodeEnvy

python,google-app-engine,logging,cloud
I'm trying to move my GAE development to the cloud. So far Codeenvy has the richest toolset however I'm struggling with one small issue. when I use the python logging library I don't know where to view these messages! def post(self): self.response.write('Processing form data...') feedback = self.request.get('content') logging.info(feedback) I assumed...

Google App Engine PHP fetchAll(PDO::FETCH_ASSOC) doesn't work

php,google-app-engine,pdo,google-cloud-sql
I've deployed a project on Google App Engine that returns Json Object on call to the url. I've use this code fetchAll(PDO::FETCH_ASSOC); to return results that will only use column name as the key to retrieve the value from when parsing in the app. However on deployment to the app...

Google App Engine performance setting : Some performance settings must be changed via Module configuration files

java,google-app-engine
Google App Engine performance setting is not available for the application, it is displaying as Some performance settings must be changed via Module configuration files. My question is, in my current application I am not using module, so it should have performance setting sliders displayed? Or I need to set...

jquery google app engine

jquery,google-app-engine
I have an issue where the Javascript file that I have uploaded does not work. My code is below. app.yaml has: - url: /js static_dir: /js index.html has: <script type="text/javascript" src="/js/script.js"></script> script.js has: $(document).ready(function(){ $('img').click(function(){ $(this).fadeOut('slow'); }); $('p').click(function(){ $(this).fadeOut('slow'); }); alert("hi"); }); and not even the alert comes out...

Objectify - should I create an entity super class?

java,google-app-engine,objectify
Is there any reason why shouldn't all my entities be subclasses of one generic ModelEntity object? @Entity public class ModelEntity { @Id Long id; } @Subclass public class User extends ModelEntity { @Index String username; } The advantages are clear: there is code common to all entities (like id, date,...

Architecture for cross platform messaging app

android,google-app-engine,backend,ejabberd,google-cloud-messaging
i am looking to build a mobile messaging app firstly in android and then ios later, and am struggling with the backend architecture and need some advice on what would be best in my circumstance. Basically i am used to just developing apps through a basic web server and using...

How to get public link for the uploaded file on google cloud storage in local dev server(Google App engine+JAVA)

java,google-app-engine,file-upload,google-cloud-platform
I am trying to upload the image files using gcs client library+java in local google app engine dev server. Images are uploaded successfully and i can see the entries created in local datastore under localhost:8888/_ah/admin/datastore How to get the public key for the uploaded images so that i can show...

db.Model.all() returns an empty list

html,python-2.7,google-app-engine,gae-datastore,jinja2
This is a fragment of my tips.html template, included in index.html: {% for t in tips %} <div class="col-lg-4 col-sm-6"> <form action="comment.html" method="get" class="portfolio-box"> <img src="img/portfolio/4.jpg" class="img-responsive" alt=""> <div class="portfolio-box-caption"> <div class="portfolio-box-caption-content"> <div class="project-category text-faded"> {{ t.title }} </div> <div class="project-name"> {{ t.content }} </div> <div><br /></div> {% if user...

Python decimal.Decimal id not the same

python,json,google-app-engine,decimal
I am having a problem with encoding to JSON in Python, specifically with decimal.Decimal values. I am using this to output JSON for a Google App Engine application. To circumvent the exception from the default json module in Python telling me that it can't handle decimal.Decimal objects, I am using...

Do we HAVE to generate and use client libraries to use Google App Engine's Endpoints?

ios,swift,rest,google-app-engine,google-cloud-endpoints
I am currently developing an Swift iOS app with GAE Endpoints for the RESTful API. It seems like all the tutorials and documents make you generate and use client libraries if you need to use the API on the client side. I was wondering if it's possible for me to...

Get resource file in multi-module Google AppEngine

java,google-app-engine,build.gradle
I'm following this doc: https://cloud.google.com/appengine/docs/java/config/appconfig#Static_Files_and_Resource_Files to setup a specific resources files location like so: appengine-web.xml: <resource-files> <include path="/resources/*" /> </resource-files> Now, I need to get the resource file outside of a servlet context. So, I'm trying to get the file with: InputStream jsonResource = new FileInputStream("default/WEB-INF/resources/" + resourceName); This runs...

No spreadsheets found when using AppIdentityService to authenticate

java,google-app-engine,google-spreadsheet-api
I can successfully authenticate my app engine app using AppIdentityService. However when I perform a SpreadsheetService.getEntries I receive no entries. Here's my code: SpreadsheetService service = new SpreadsheetService("Spreadsheet editing"); String[] SCOPESArray = { "https://spreadsheets.google.com/feeds" }; final List SCOPES = Arrays.asList(SCOPESArray); AppIdentityService appIdentity = AppIdentityServiceFactory.getAppIdentityService(); AppIdentityService.GetAccessTokenResult accessToken = appIdentity.getAccessToken(SCOPES); Credential...

GAE/P: Migrating to NDB efficiently

python,google-app-engine,app-engine-ndb
I'm finally upgrading from db to ndb (it is a much bigger headache than I anticipated...). I used a lot of ReferenceProperty and I've converted these to KeyProperty. Now, every place where I used a ReferenceProperty I need to add an explicit get because it was previously done for me...

Getting user credentials using Google+ API

android,google-app-engine,google-api,google-api-java-client
I am trying to include Google sign in in my android application using Google+ Api. I am able to take account details from the user but once signed in I am getting null when requesting for username using call: Plus.PeopleApi.getCurrentPerson(mGoogleApiClient).getDisplayName() And Logcat shows: BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/plus/v1/people/me...

Objectify list consistency in one entity

google-app-engine,gae-datastore,objectify
I try to make a chat solution on App Engine for my android app. A decided that instead of save all messages send to a topic in a separated entity like ChatMessage or something like this, I can save them in a List of Strings inside the Topic entity, like...

Google Appengine - Entity class is not enhanced

google-app-engine
If I change an Entity class in a an appengine project in eclipse, in run time I get this error Found Meta-Data for [classpath] but this class is not enhanced!! Please enhance the class before running DataNucleus. Even when I undo the changes and re-run the local srv i get...

AppEngine: Memcache without any instance

google-app-engine
My problem is my memcache resets every night. What could the be problem? I have a very simple low-traffic web site on google appengine/Java. I do not have any instance left at night bacuse of lack of traffic. If there is no instance it means the memcache clears all the...

How can you get the Google+ Profile of the current user when using Google Cloud Endpoint's (Java) built in authentication?

google-app-engine,google-plus,google-cloud-endpoints
My Setup Backend: Google App Engine (Java) w/ Google Cloud Endpoints using Endpoint's built in authentication Frontend: AngularJS web app Problem I need to get the Google+ profile for my users. The keyword "me" can generally be used to get the current user's Google+ profile, however since all the authentication,...

Optimizing for Social Leaderboards

python,google-app-engine,optimization,twitter,leaderboard
I'm using Google App Engine (python) for the backend of a mobile social game. The game uses Twitter integration to allow people to follow relative leaderboards and play against their friends or followers. By far the most expensive piece of the puzzle is the background (push) task that hits the...

Sending mail by Unauthorised sender in Google AppEngine

python,google-app-engine,email,sendmail
I've got a Google AppEngine Python application connected with my domain. I want to be able to send emails from any email, like: [email protected] So I use sendmail() and set mailobject.sender = "[email protected]", but it does not work. Also I made a receive function, but I don't want to receive...

Why google app engine stop auto scaling?

google-app-engine,autoscaling
I was trying google app engine and data store these 2 days, and I did some jmeter load testing. I noticed that everything runs fine at the beginning of the day, but later the instance auto scaling stop working. I already upgraded to the paid account, and setup the billing...

Google datastore multiple values for the same property

android,google-app-engine,gae-datastore,google-datastore
I am using Google Datastore for an Android application, the backend is written in Java. In one table, I want to set multiple values to the same property: Entity newGroup = new Entity("group"); newGroup.setProperty("member", "A"); newGroup.setProperty("member", "B"); newGroup.setProperty("member", "C"); datastore.put(newGroup); I then want to query to find all groups a...

Profiling memory usage on App Engine

python,google-app-engine,memory
How can I profile memory (RAM) usage on my App Engine app? I'm trying to address errors related to exceeding the instance memory limit. I've tried these things and, so far, they don't work or don't provide what I need. Appstats. This doesn't provide memory usage details. Apptrace. It hasn't...

Objectify: Filter by an attribute of collection entries?

google-app-engine,collections,objectify
I'm using Objectify on Google's AppEngine. I have the following Entity-Model: @Entity public class ChallengeEntity { @Id private Long id; @Index public List<ChallengeParticipant> participants; } The Participant (not an entity... should it be one?) public class ChallengeParticipant { @Load public Ref<UserEntity> user; // ... participant-specific attributes } And the User-Entity:...

Fixing cursor issues in Web2Py on Google AppEngine?

python,google-app-engine,web2py
I have a simple UI for interacting with a database set up on a Google AppEngine application using Web2Py. I'm using the default Grid builder to settings to display it. Here is my full controller function: @auth.requires_login() def managePeople(): # To hide the ID column from being seen on this...

Websocket port on google managed vm

google-app-engine,google-cloud-platform
I have tried to use managed vm to run an web socket server over port 3000 but i can only connect to it via the ip of the instance, and not by my own domain or "appspot" domain. When i access the app on port 80 i get the right...

GAE/Python best practice for a pop-up alert?

python,html,google-app-engine
I need to have an alert pop-up in Google App Engine when the user inputs a value that would create a duplicate item. What is the best way to do this? I found a way to do it, but it's far from elegant: When the user inputs a duplicate project...

Google AppEngine channel is opened, client is receiving responses, but socket.onmessage is not being called

javascript,google-chrome,google-app-engine,long-polling,channel-api
I have a webpage that I want to use the google app engine channel API with. I have a token being generated with an external library, which is fed into this very, very simple javascript. <html lang="en"> <body> <script src="jquery-1.6.3.min.js" ></script> <script type="text/javascript" src="/_ah/channel/jsapi"></script> <script type="text/javascript"> var token, channel, socket;...

How to wrap error trace inside Log.Severe()

java,google-app-engine,logging
I am using java.util.logging.Logger for logging on app-engine. Normally all I have to do to get my errors is to call e.printStackTrace(). Except I get nothing when I make the call from inside a worker thread that belongs to a Task Queue. But within the Task Queue, all the loggings...

datastore - using queries and transactions

google-app-engine,gae-datastore
I'm working with objectify. In my app, i have Employee entities and Task entities. Every task is created for a given employee. Datastore is generating id for Task entities. But i have a restriction, i can't save a task for an employee if that task overlaps with another already existing...

App Engine - NDB query with projection requires subproperty?

google-app-engine,gae-datastore,app-engine-ndb,google-app-engine-python
I have the following objects: class Address(ndb.Model): type = ndb.StringProperty() # E.g., 'home', 'work' street = ndb.StringProperty() city = ndb.StringProperty() class Friend(ndb.Model): first_name = ndb.StringProperty() # E.g., 'home', 'work' last_name = ndb.StringProperty() class Contact(ndb.Model): name = ndb.StringProperty() addresses = ndb.StructuredProperty(Address, repeated=True) friends = ndb.StructuredProperty(Friend, repeated=True) And now to optimize the...

What is the equivalent of BlobstoreLineInputReader for targeting Google Cloud Storage?

python,google-app-engine,mapreduce,pipeline
This is a python appengine question, mapreduce library 1.9.21 . I have code writing lines to a blob in the local blobstore, then processing that using mapreduce BlobstoreLineInputReader. Given that the files api is going away, I thought I'd retarget all my processing to cloud storage. I would expect to...

GAE DOMDocument::load(): I/O warning : failed to load external entity

javascript,php,json,google-app-engine
I'm trying to move an existing webapp on GAE. At the moment the app is running on my local SDK. When the app perform a compatibility check, it returns an error (read by FIREBUG ): This is the code of the js who fails: function checkConfig(){ // Launch the configuration...

Can we use AsyncHttpClient in Google App Engine application

java,google-app-engine,asynchttpclient
I want to use this async http client in my google app engine application But when I run locally I'm getting following errors. Is Appenigne blocking this library. If so any alternative for async http connections from App engine application Uncaught exception from servlet java.lang.NoClassDefFoundError: Could not initialize class com.ning.http.client.AsyncHttpClient...

Cloud Endpoints with Cloud SQL sample code

java,google-app-engine,google-cloud-endpoints,google-cloud-sql
I am looking to use Cloud Endpoints to create an API on the Google App Engine but all the tutorials I see are for how to interact with the Cloud Datastore. I am looking to use Cloud SQL though. Does anyone have a Cloud Endpoints class sample code (in Java)...

Using gcloud on Travis CI

google-app-engine,continuous-integration,travis-ci,gcloud,service-accounts
I have gcloud installed and working and a service account gets also activated. I run the following and get a success(?): $ gcloud auth activate-service-account "${GAE_CLIENT_ACCOUNT}" --key-file "${GAE_CLIENT_KEY_JSON_FILE}" Activated service account credentials for: [[email protected]] Then I run this: $ gcloud preview app deploy app.yaml --project "${GAE_PROJECT_ID}" --quiet --version "${GAE_PROJECT_VERSION}" You...

Cannot log in to the MySQL server error when logging into phpmyadmin with Google Cloud SQL on Google App Engine

google-app-engine,phpmyadmin,google-cloud-sql
EDIT: Changed my question around as this is the real problem: I followed this Google guide to deploy phpmyadmin on Google Cloud SQL with Google App Engine. I followed the tutorial and deployed phpmyadmin successfully to my App Engine however, when I try to log in with user: "root" password:...

Is it possible to execute a task inside Google App Engine taskqueue?

google-app-engine,task-queue
I want to do a unittest on a function inside Google App Engine taskqueue. I would like to know if there is any method by which we can execute the tasks in taskqueue so as to test whether it yields the desired output.

Google App Engine datastore: filter()

python,google-app-engine
I'm trying to retrieve an entry from Google App Engine's datastore using the filter() method as follows: result = Sender.all().filter("email =", email).filter("source_address =", source).filter("dest_address =", dest).filter("food_type =", food_type) Then, if such an entry exists, I change the value of one of the columns in that entry. Otherwise, I'm displaying an...

Google App Engine: Unable to find 'increasing daily budget'

google-app-engine,payment
I can't find it. https://cloud.google.com/appengine/pricing talks about it but doesn't say where. This one says it's in the billing section, but the billing section lists my billing accounts and inside an account I can't find it either....

How many Async calls we can call in one request in Google App Engine

google-app-engine,asynchronous
I'm writing an app on top of google app engine. Using Java as language. I'm new to GAE. I want to use URL fetch service for async calls in application. I'm having few doubts 1. How many async calls I can call in one appengine request ? 2. What happens...

Google Cloud Datastore PropertyFilter Error

php,google-app-engine,google-api,google-cloud-datastore,google-php-sdk
I'm using the google apis php sdk and trying to access some data from my google cloud datastore. I'm authenticating no problem at this point, but am getting an error during my query. I pretty much look through the code in the sdk to implement it, since documentation is null,...

Google-App-Engine[PHP]: Error trying to establish database connection

php,mysql,database,wordpress,google-app-engine
I am finding a problem with the cloudsql as database connection is not being established. I have followed the following site step-by-step https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/ However I seem to be finding problems after deploying the project to the appengine and accessing the wordpress installation page with URL: https://<PROJECT-ID>.appspot.com/wp-admin/install.php The error shown is:...

Designing an API on top of BigQuery

google-app-engine,bigdata,google-bigquery
I have an AppEngine app that tracks user various sorts of impression data across several websites. Currently we're gathering roughly 40 million records a month and the main BigQuery table is closing in on 15Gb in size after 6 weeks of gathering data and our estimates show that within 6...

usging datastore-indexes.xml on development app engine server

java,google-app-engine
It seems that in development App Engine server datastore-indexes.xml doesn't work. Is it true? Also, I created a datastore-indexes.xml file with autoGenerate="true" but it didn't generate me any indexes in datastore-indexes-auto.xml. Why? <?xml version="1.0" encoding="utf-8"?> <datastore-indexes autoGenerate="true"> <datastore-index kind="UserData" ancestor="false"> <property name="email" direction="asc" /> <property name="email" direction="desc" /> <property name="lastName"...

Datastore object Key field

google-app-engine,go
Does the GAE datastore API (Go) support returning the key on an object by default? Currently I'm solving this by updating an ignored Key field manually in code after writes and fetches like this: type User struct { Key *datastore.Key `datastore:"-"` Email string ... } Do I have to do...

In Google App Engine for Go, how can a property have values of more than one type?

google-app-engine,go,gae-datastore
The Google App Engine for Go datastore docs say, " A property can have values of more than one type". There is no example or further explanation. (Version: appengine 1.9.19.) How can a property have more than one type if you must declare that property with a specific type in...

How to get a response for a streaming url on google app engine (python)

python,google-app-engine,urllib2,urlfetch
I am trying to verify if a online radio url is delivering music and if the url was redirected or not (this happens if for some reason the request url is wrong or not active). I found some advices here Fetching url in python with google app engine. However, for...

Getting gcloud to work in Cygwin Windows

python,windows,google-app-engine,cygwin
I am fairly new to programming. I have started app development on google app engine. I am trying to get the Google Cloud SDK to work with Cygwin 32 on Windows. I first ran the curl command to download the Google SDK files. Then I ran the install.py script and...

Error running gae appcfg.sh with --severity parameter

java,google-app-engine
I'm trying to deploy an application to google appengine with appcfg.sh tool. But using parameter --severity the process fails. appengine-java-sdk-1.9.15/bin/appcfg.sh --severity=0 update . The output error is : Encountered a problem: com.google.appengine.tools.admin.AppCfg$UpdateAction cannot be cast to com.google.appengine.tools.admin.AppCfg$RequestLogsAction Please see the logs [/tmp/appcfg5275118373648282055.log] for further information. Could it be a bug...

Scaling non-default version of Google App Engine Backend

python,google-app-engine
I have a live app that uses Google App Engine (python) for the backend. The app is pointing https://my-app.appspot.com. Because the API has changed significantly, I've set up a new version of the backend, 'v2', and am pointing the new app to https://v2.my-app.appspot.com. I see now in the docs, that...

AJAX call to Servlet Google App Engine (GAE)

java,ajax,jsp,google-app-engine,servlets
I am trying to make an AJAX call to my servlet but it doesn't work. I can't redirect to a JSP. This is my AJAX call: $.ajax({ url: '/register', type: 'GET' }); This is my Servlet: public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { getServletContext().getRequestDispatcher("/prueba.jsp").forward(req, resp); } If...

How do I run a google appengine docker image on a compute engine instance?

python,google-app-engine,google-compute-engine
I have the following docker file: FROM gcr.io/google_appengine/python-compat MAINTAINER [email protected] RUN apt-get update RUN apt-get -y upgrade ADD ./app/ /app ADD app.yaml /app/ RUN mkdir -p /var/log/app_engine I create the log directory because otherwise I get the following error sudo docker run gcr.io/MY-PROJECT/ae-image Traceback (most recent call last): File "/home/vmagent/python_vm_runtime/vmboot.py",...

Could someone bring Google OAuth2 for Cloud DNS via Rest to light?

c#,api,rest,google-app-engine,dns
Infinite Loop Error. I have been spending way too much time going in circles in Googles really terrible API documentation regarding implementation of their cloud services in a desktop application. First major problem, it seems that I must use Oauth2 somehow in order to obtain additional client credentials (which I...

Managed VM Background thread loses environment

python,multithreading,google-app-engine
I am having some problems using Background Threads in a Managed VM in Google App Engine. I am getting callbacks from a library linked via Ctypes which need to be executed in the background as I am explaining in a previous question. The problem is: The Application loses its execution...

GAE webapp2 delete all UserTokens (drop all sessios) for specific user

python,google-app-engine,webapp2
I want to drop all user sessions when user resets his password, but I can't find a way to do that. My idea was to get all UserTokens of the specific user and delete them, but it seems impossible, because of user = model.StringProperty(required=True, indexed=False) in UserToken model Any ideas...

IllegalArgumentException: expected primitive class, but got: class UUID

android,google-app-engine,google-cloud-endpoints
My app is using GAE endpoints. My model has UUID. And once i try to send it Android app it encounters illegalArgument exception. Anyone has got recommendations how to handle endpoints model with UUID on android app with Google App Engine endpoints? 06-14 23:26:49.560 27462-27488/com.example E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1...

Google App Engine connection request timeout error

google-app-engine,connection-timeout
I am working on a GAE web app which shows movie related data.To get the movie data I am using API from OMDB (http://www.omdbapi.com/) .Below is the code snippet I use to connect to the API. When i run it locally it works perfectly fine, but doesn't work when deployed...

Delete ndb EntitiesByProperty index table

google-app-engine,indexing,gae-datastore,app-engine-ndb
I have an NDB model with some obsolete EntitiesByProperty indexes. Some belong to properties that are no longer part of the schema (but they do exist on some old entities), and some belong to properties that are never used for queries (but they were with Indexed=True because this is ndb...

persisting relationships in datastore - app engine and objectify

java,google-app-engine,gae-datastore,objectify
my app is using objectify. i'm really new to NoSql . i have a data model like this. pay no attention to lack of getters and setters, lack of builder pattern, etc. is just an example. as you can see, ReallyWeirdCar is the root of a quite deep object graph....

Angular route not working when used with Google App Engine and Flask

python,angularjs,google-app-engine,flask,angularjs-routing
What I'm trying to do: I am trying to build a RESTful Flask application on Google App Engine with Angular handling the routing and view logic while Flask handles back end logic and resources. The Problem: When I start the development server for GAE, the first page loads perfectly. The...

Under GAE, can a Python function detect if it is running locally or in production?

google-app-engine
I need my app to run very slightly differently depending on whether it is running on the GAE launcher on my laptop or really inside GAE. The app-id is the same, the app.yaml is the same, is there something different I can see?

Define a static IP for a managed VM

google-app-engine
As in the title, I'd like to deploy a managed VM attaching a static IP. I don't want an IP for the instance lifetime, but I'd like to use the same IP every time the instance is recreated....

GAE Python PyML ImportError: No module named _ckernel

python,google-app-engine,pyml
I'm trying to import PyML on Google App Engine as a requirement for another library, however I am getting the following import error: File "/base/data/home/apps/s~myapp/uno.385079313378714244/PyML/__init__.py", line 4, in <module> from PyML.containers import * File "/base/data/home/apps/s~myapp/uno.385079313378714244/PyML/containers/__init__.py", line 3, in <module> VectorDataSet = __import__('PyML.containers.vectorDatasets', fromlist=['']).VectorDataSet File...

JPA PersistenceException: Class name could not be resolved

java,google-app-engine,jpa,gae-datastore
I'm trying to create a method to get a project by the project name from GAE, but I'm getting the following error. javax.persistence.PersistenceException: Class name TestProject could not be resolved I get this error in the following piece of code on the line where the ifstatement starts public Project getProjectByProjectName(String...

In terms of back-end and front-end technology, what can GAE do that Web Hosting can't? [closed]

google-app-engine,web-hosting,lamp,paas,web-technologies
I vaguely understand the difference between Google App Engine and a traditional Web Hosting service. I do understand Google App Engine can scale for a much wider audience, thanks to not having to maintain your own hardware, handling the load-balancing, spreading the data over multiple locations, etc. But in terms...

jQuery ajax() success data - retrieving object results from Python server

jquery,python,ajax,google-app-engine,ajaxform
I am trying to display success data after a jQuery ajax function from a Python server (GAE). I am able to make it work with just a single string or number as the success data, but I would like to relay several pieces of info from the server in the...

unindexed field in appengine search document?

google-app-engine,search
In a appengine search document, can I set a field to not be indexed? I looked at the documentation and I think this is not possible, but I don't find anywhere that concretely says so, so trying to make sure. I wonder why this is... perhaps they are trying to...

serving GAE applications over http

java,google-app-engine,ssl
I have implemented an application on GAE which can be accessible through https://<my_app_id>.appspot.com. Now I have a custom domain registered with Register.com. As described in GAE documentation I have mapped my custom domain to https://<my_app_id>.appspot.com and I see my application getting served from my custom domain. But I see requests...

Duplicate symbols Apple Mach-O Linker Error

ios,objective-c,xcode,swift,google-app-engine
I am trying to use Google Endpoints in an iOS Swift project. I created the Hello World Endpoints project in Python and I set it up on AppEngine per https://cloud.google.com/appengine/docs/python/endpoints/ I am following these instructions to set it up on my project: https://cloud.google.com/appengine/docs/python/endpoints/consume_ios#Python_Adding_required_files_to_your_iOS_project I am using the Google+ API too....

Cloud Endpoints is REST or RPC style technology?

google-app-engine,google-cloud-endpoints
In documentation for cloud endpoints i read that: "One of the benefits of being able to easily build your own API is that you can design it any way you want. Cloud Endpoints gives you this flexibility—it allows REST- or RPC-style APIs, or a combination of both.". But of what...

Sorry, unexpected error: 'module' object has no attribute 'SMTP_SSL'

python,google-app-engine,flask,flask-mail
This is my code for my main.py file which is designed to be a simple contact form built in flask. from flask import Flask, render_template, request from flask_mail import Mail, Message from forms import ContactForm app = Flask(__name__) app.secret_key = 'YourSuperSecreteKey' # add mail server config app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT']...

Google App Engine - Writing app.yaml for a particular url like applicationName.appspot.com/docs/ec-quickstart/index.html

python,css,google-app-engine,hosting
I have a google app engine application and I am using python 27. I want my url when deployed to be applicationName.appspot.com/docs/ec-quickstart/index.html How do I write my app.yaml file? The code below loads my index.html file without the css. handlers: - url: /docs/ec-quickstart/index.html static_files: docs/ec-quickstart/index.html upload: docs/ec-quickstart/index.html However, if I...

Trying to download a file using Dropbox Java API in the GAE

java,google-app-engine
I have an XML file on Dropbox that I want to access from my Google App Engine using the Dropbox Java API. After a bit of playing around I find the GAE doesn't support FileOutputStream. FileOutputStream outputStream = new FileOutputStream("myFile.txt"); try { DbxEntry.File downloadedFile = client.getFile("/myFile.txt", null, outputStream); System.out.println("Metadata: "...

GAE python - client_secrets.json 'File not found' - app.yaml error?

python,json,google-app-engine,youtube-api,app.yaml
I am using GAE (python) to make a web application. I am specifically attempting to get a youtube API to work, but I cannot get the credentials to function properly. If I follow the "Retrieve my Uploads" example here, I keep getting an error when importing the client_secrets.json file: InvalidClientSecretsError('File...

How can I create a docker image from the current system?

google-app-engine,docker,boot2docker
I want to create a Docker image after I SSH into the VM and download/config the project. Due to the nature of the project I cannot do this in the config file, it must be done by "freezing" the current system into an image. Is this possible? ...

How to upload images and storing it in db google app engine

python,google-app-engine,google-datastore
Hello i want to know how to upload a picture from the user and store it in data base using this form ( using google data store) <form method='post'> <input type='file' name='img'> <input type='submit'> i have made a db model from google.appengine.ext import db class Photo(db.model): profile_pic = db.BlobProperty() and...

Replacing the FileService Api to create a Blob file in server side

java,google-app-engine,gwt,google-cloud-storage,blobstore
I am using the FileService Api to save files to the Blobstore from server side like this: FileService fileService = FileServiceFactory.getFileService(); AppEngineFile file = null; file = fileService.createNewBlobFile(contentType, fileName); boolean lock = true; FileWriteChannel writeChannel = null; writeChannel = fileService.openWriteChannel(file, lock); ByteBuffer bb = ByteBuffer.wrap(FILE_BYTES); writeChannel.write(bb); writeChannel.closeFinally(); BlobKey blobKey =...

Choosing specific ports on local development server for non-default modules

java,google-app-engine,android-studio,gradle,app-engine-modules
In my build.gradle file, I use the following config for my non-default (module2) AppEngine gradle module: appengine { downloadSdk = true httpAddress = "0.0.0.0" httpPort = 8081 appcfg { email = "[email protected]" oauth2 = true } } However, when I run my "Google AppEngine configuration", the module still starts on...

Trouble deleting entity with specific property set in Java GAE

java,google-app-engine,gae-datastore
I have the entities created like this: public String addNewStockName(String newStock) throws DelistedException { Entity stock = new Entity("Stocks"); stock.setProperty("Name", newStock); ds.put(stock); return "OK"; } Trying delete the specific entity like this: public String deleteStockName(String stockName){ Key key = KeyFactory.createKey("Stocks", stockName); ds.delete(key); return "OK"; } And it does not delete...

Generate unique Long Id on App Engine

google-app-engine,objectify,google-datastore
I've three possible ways user can sign in into our service: login and password Google+ Facebook I want to keep all those user id's in one entity. To avoid id collisions between e.g. Google and Facebook a prefix will be added to id (g- and f- respectively). Currently for users...

Flask - Trying to add an ID field in database which is incremented each time

python,google-app-engine,flask
This is the code from my models.py file. Everything was working until I tried to add a new field for "ID" which gets incremented with each item. This is a flask app running on google app engine. from google.appengine.ext import db class Post(db.Model): id = db.Column(db.Integer, primary_key=True) title = db.StringProperty(required...

How to use CachedRowSet in Google App Engine?

java,google-app-engine,jdbc,resultset,google-cloud-endpoints
I am using Google App Engine (Endpoints) to generate a simple API service. I'm currently trying to make my queries to the database faster and more efficient, so I decided to double check where I was calling ResultSet and Connections and closing them. However I want to use CachedRowSet and...

Is it possible to use Google Cloud Endpoints built in authentication with Google+ Domains API?

google-app-engine,authentication,google-plus,google-cloud-endpoints,google-plus-domains
Google Cloud Endpoints has it's own authentication process in which the backend endpoint method is simply passed a com.google.appengine.api.users.User object. https://cloud.google.com/appengine/docs/java/endpoints/auth The Google+ Domains API specifies its own authentication process in order to get the com.google.api.client.auth.oauth2.Credential object. This allows for the building of the com.google.api.services.plusDomains.PlusDomain object. https://developers.google.com/+/domains/authentication/ How would you...

No module named _mysql - Google App Engine & Django

python,mysql,django,google-app-engine
First of all I'm working on Mac (Yosemite). I've created a simple Django project with Google App Engine. I'm using Cloud SQL in production and MySQL in development environment as recommended in the docs. The project uses virtualenv on my dev machine of course. I can run the project with...

How to get google app engine admin mail address?

java,google-app-engine,email
Is there a way in Google App Engine (Java) to get the the email address of the admin that is allowed to send mails without hardcoding it somewhere? Currently I use the Java System property in the appengine-web.xml. Something like the uploader of the app would be fine, too. Background...

Polymer & google cloud endpoints golang backend

google-app-engine,polymer,google-cloud-endpoints
I'm trying to get my google cloud endpoint from polymer 1.0 all is set and working (backend and dispatcher on appengine), but the google-api-loader/google-client-loader (Tried both) refuses to acknowledge my endpoint, with google-api-loader nothing happens ready event never triggers, with google-client-loader it does but tries to get this url: https://content.googleapis.com/discovery/v1/apis/jobs/v1/rest?fields=rootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods&pp=0...

Unable to deploy an application module on AppEngine

google-app-engine,google-app-engine-python
I am unable to deploy an application module. appcfg.py update --oauth2 app.yaml producer.yaml Error 409: --- begin server output --- Another transaction by user rue1401 is already in progress for app: s~lpsng2, version: 4. That user can undo the transaction with "appcfg rollback". --- end server output --- Doing an...

Python gdata API returning empty data with oauth2

python,google-app-engine,oauth
A while back I wrote a GAE application that scrapes some information from a google spreadsheet using the gdata-python-client library. Everything has been working fine until recently (in the last week) when Google finally removed the ClientLogin method. They now only allow oauth2 for authentication. This has completely broken my...

Check if a queue is empty in Google App Engine

python,django,google-app-engine,task-queue
I have a script that add tasks to a queue. For example: api.py: from google.appengine.api import taskqueue [...] for u in users: taskqueue.add(queue_name='mailqueue', url="/api/users/send-notification/%s" % (u.id), method='GET') I would like to check if the queue is empty and all tasks are finishing view.py: if queue_is_empty: print "Your task is finished"...

upload CSV file to database on Google app engine using Python

python,database,google-app-engine,csv,upload
I'm a newbie in python and started learning it from about a week. I was looking into couple of tasks one of which was to upload a file (.txt or .jpg) to a bucket on GAE. I was able to solve it by following couple of tutorials online, but i'm...

Seperating PHP and HTML [closed]

php,html,google-app-engine
I apologize for asking such a beginner question, but i'm unsure on where else I could go to get such help. I'm currently creating a php website using GoggleApp Engine. I've created a very simple form using html in the same file as my PHP. Now, I know this isn't...