|Cloud Endpoints not accepting JSON array|
Is that an accurate representation of the JSON object which is being
sent over? Because one does not simply send a a POST request with a
JSON object of their param object to a cloud endpoint. See here for a
perspective - notice how the client library exposes an object "gapi"
through which calls are made. If you're sending this JSON from
|Replace datastore for google cloud sql|
If you are willing to migrate from Datastore to SQL database. You need
to make changes basically at your Database Layer (DAO Layer).
Firstly you need to review all the relationships between your entities
as in case of SQL and the similar you need.
Secondly you need to review all the indexes you have created in your
Datastore and put them accordingly in your SQL instance database.
|Adding a non-domain Member to the Google Developer's Console|
To workaround this, you can do the following:
Have the domain Administrator for your domain Google Apps Account
create a Google Group (say the group name is "GAE").
Have the domain Administrator allow out-of-domain members for the
Add the email addresses of out-of-domain members to group "GAE".
Add group "GAE" to the project.
There will be no confirmation email sent.
|using class vs using function with ndb.model? google app engine|
There is no way to post a model with a function. The app engine
doesn't allow for that. Ndb creates models as classes of Python, not
as functions, so the examples you found are actually wrong.
This is to add to Greg and dyoo who just said it in comments. I want
it posted as an answer. Also interesting is to look at the ndb
examples from google, and in no case is it declared as a def.
|GAE Error 404 after setting redirect www to naked domain on GoDaddy|
Finally I found solution how to solve this domain redirecting problem.
I came to this help article: Updating Your Domain Name's IP Address
for Forwarding from GoDaddy Support, stating that I must update the
domain address manually so domain name forwarding services work
But instead of replacing all of the '@' Host in A record into this
forwarding address I just need to add a separate
|Can't upload (deploy) to Google App Engine with app-cfg|
You first need to create an application on
http://appengine.google.com/. As part of creating the application,
you'll choose an application id. After creating the app, edit your
app.yaml file and look for the line:
you the need to replace "myapp" with the application id you chose.
|Sharing storage among VMs|
The account key is the access key for your storage account, which you
can find in the management portal:
Here's a step-by-step guide to create a new share:
|MetricFilterAutoConfiguration throwing Exception with spring-boot-legacy on Google App Engine|
Here is what was causing the issue:
Here is what fixes the issue:
Unfortunately, I didn't have enough understanding of how everything
|Can I automate creation of Google Cloud projects?|
You have to agree to terms and conditions to create a project and this
will not be automated.
A much better approach is to use namespaces to implement multitenancy.
|Use custom account instead of service account in Google API|
If the "technical user" you are referring to is a @gmail account, then
your only option is to do the OAUTH dance once to obtain a oauth token
and refresh token. You have to create a "Client ID for web
application" to do this. Once you have the auth and refresh token, you
can connect as your "technical user" to Google drive.
If the "technical user" you are referring to is a Google Apps account,
|GAE TaskQueue hitting Endpoints API|
In endpoints, HTTP 404 corresponds to
Is it possible that the method has not been defined in the API class,
or that it doesn't have a correct annotation?
Also, it doesn't seem like it's hitting http, the trace clearly shows
https as the protocol. I think it's only possible to use http on
|What're the differences between two SDKs|
Google Cloud SDK provides tools to manage and configure your cloud
account. In addition, it's bundled with other cloud services SDKs. If
you install the Cloud SDK, you don't need to install the App Engine
SDK, it's included. On the other hand, you can install the App Engine
SDK only without installing the Cloud SDK.
So basically if you want some cloud configuration tools + all the SDKs
|Populate a local Datastore based on appspot Datastore|
Here i found a very good way to take dump of data and populate it , in
your local database.
You have to take the dump , download it , and then read the entities
and save them in your local database
|What is the most efficient way to write 3GB of data to datastore?|
If you need to store each row as a separate entity, it does not matter
how you create these entities - you can improve the performance by
batching your requests, but it won't affect the costs.
The costs depend on how many indexed properties you have in each
entity. Make sure that you only index the properties that you need to
|Hitting Max number of files and blobs for Google App Engine|
Looks like you are hitting this quota:
Could you shift many of your files to Cloud Storage?
|What is the maximum size of a bucket on Google Cloud Storage? When should I use multiple buckets for one web app?|
There's no size limit for a bucket, the only limit you have is 5TB
maximum size per uploaded file.
You can use multiple buckets not mainly for scalability but for access
rights management and to structure your data
|appcfg.sh update_dispatch stopped working|
The API calls being made to admin/push originated from a Push Task
Queue, I originally didn't know that I could target a specific module
using the queue.xml file and thus I was relying on the dispatch to
route the requests to the module. I just started using the "target"
field in the queue.xml file to directly target the push notifications
module (by-passing the need for the dispatch) and the modu
|What is the best way (Least Read Operations) to do autocomplete on Google App Engine Using Objectify|
The best way to do these kind of operations is use the following
Use full text search:
When creating a document to search on, you could tokenize the email
id. for example if you have firstname.lastname@example.org. you could tokenize it to
f, fo, foo, foobar .... and save it into a textfield.
then use index.search to query for the results.
|How to run or deploy an app with a git dependency to a private repo|
My previous solution is still very inconvenient because I have to
check in every time before I re-launch the app.
With great support I found a much more convenient solution.
Instead of an symlink I mount the directory. See
http://superuser.com/questions/842642 for more details.
I don't know if and how this can work on other oSes (Win, OX X, ...)
I mount ../my_package to docker/my_packa
|Cloud Datastore API - php - GqlQuery - Binding args|
Cloud Datastore GQL and Python GQL (App Engine) handle argument
binding slightly differently.
In this case, you need to use a @ instead of a :, for instance:
SELECT * FROM kind WHERE fieldName = @fieldName LIMIT 1
SELECT * FROM kind WHERE fieldName = @1 LIMIT 1
Here's the reference documentation for argument binding in Cloud
|Using Persistence APIs with Cloud SQL|
As per the definition, A persistence unit defines a set of all entity
classes that are managed by EntityManager instances in an application.
Please refer to the following link for more details.
Now, once your application is built and since this is a web
application, as per the link above "If you package the persistence
unit as a set of classes in a WAR file, persistence.xml should be
|How to use CNAME to properly redirect subdomain from host to Google Cloud|
To use your bucket as a static site you need to configure it first
You probably need to upload an index.html and 404.html to your bucket
and then run this:
gsutil web set -m index.html -e 404.html
|Specify zone/region in gcloud preview app deploy|
Currently, the European offering for the App Engine is limited. If you
have a Premier account, you can set the location from the console. If
not, you have to fill out a request form to have your app hosted in
Europe. There are other conditions such as having billing enabled.
More info: Server Location
|How to load seed data into app engine's datastore using golang?|
So, to begin, I'll gently remind you that there are no "tables" in
Datastore. Thinking using the terms of the RDBMS world will only
confuse you. Please take the time to really understand the underlying
storage mechanisms and data structures. I'd recommend this video for
an in-depth look at what Datastore actually is.
So to get to your actual use-case, "application restart" is also
something of a
|App Engine and creating a private cache (java)|
I am assuming this is for google app engine - python.
Yes. We are using cachepy currently in production with a decent
Note that this is an instance specific cache mechanism.
So you could use cachepy to cache it per-instance and also to memcache
as a fallback before persiting to the datastore.
So when a cache miss happens on cachepy you can look up a
|Share google cloud storage among multiple google app engine applications without much settings|
Your app engine apps are running as a special "service account"
associated with their projects. That account can be granted
permissions just like any other. If you grant all of the service
accounts full control of all of the buckets and objects, they will be
able to use those buckets just as if they are the owners.
To find the service account, go to the app engine console and choose
|I m not able to insert events into the Google calendar API ?|
Insufficient Permission error is thrown when the authenticated user
does not have sufficient permissions to execute this request. When I
looked at the code, I see the line
// private static Set SCOPES =
is commented out. When you are trying to add the calendar events,
there should be scopes with WRITE authorization to the users profile
in the code. Yo
|Go, Google Cloud Appengine local package|
When you deploy your application, the goapp tool will bundle all the
dependencies from your local GOPATH. If the app runs with your local
GOPATH with goapp serve, it should run on appengine without additional
work. See here for more information:
|Is it possible to prohibit the use of SSL Version 3.0 on Google App Engine?|
It seems the Google security team has already taken the necessary
According to their recent security bulletin,
App Engine, Cloud Storage, BigQuery, and CloudSQL customers do not
need to take any actions. Google’s servers have been updated and are
protected from this vulnerability. Customers of Compute Engine need to
update their OS images.
I am not sure exactly what that means, but
|gcloud deploy error: Image with tag google/docker-registry was not found|
You need to pull the google/docker-registry image to resolve this
docker pull google/docker-registry
Note: if you receive the following error when trying to redeploy:
docker.docker.errors.APIError: 500 Server Error: Internal Server Error
("Invalid registry endpoint https://192.168.59.103:49153/v1/: Get
https://192.168.59.103:49153/v1/_ping: EOF. If this private registry
supports only HT
|_ah_SESSION does not show up even with proper configuration|
If in your tests you delete _ah_SESSION from the datastore it might
still exist in memcache.
Two ways to make _ah_SESSION reappear:
1) Delete the JSESSIONID cookie and reload your page. This will create
a new _ah_SESSION entry immediately albeit for a new session.
2) Clear memcache (this addresses the issue more directly):
You can flush the memcache from the old appengine console at https://a
|How can I address the 10GB limit on Google App Engine?|
File a feature request:
There was this filed too so maybe star it:
|No instances in app engine admin console|
I was planning to deploy a managed VM with custom runtime and was
watching this Google I/O bytes video and it seems it's expected. The
manged vms with custom runtimes will show under Compute Engine on your
developer console (4:35 in this video). You will be able to manage
your App through App Engine on developer console.
|Trying to upload a file into google app engine using Blob|
I don't think there are any ways to convert a file directly on the
server. But to store and retrieve, you might want to take a look into
the Google Cloud Storage client library (and the one from Python, if
These might help as well (Java and Python). From there you can easily
save a file, then retrieve it. Once you retrieve it, do your
conversion to pdf and voila!
|Will apache mahout or other recommendation system work on google app engine|
Apache Mahout integrates nicely with platforms such as Hadoop for
distributed processing of the data. However, most of the algorithms
are designed to work standalone as well. You should be able to run
them within App Engine without an issue. For scalability though, I
would consider switching to Hadoop.
|How can I debug a Dart AppEngine app|
The app can be run without Docker and then be debugged like any Dart
command line application:
The API server is part of the App Engine SDK, and we are using it
running tests in the appengine package. If you look at
|Giving access to others on new GAE console|
I found the issue!
If you add a new project via appengine.google.com (old way) the
application won't show up under Compute/App Engnie section of
console.developers.google.com as simple as that.
The proper way to get all functionality is to add the new project
using the console and then use the permission to add others.
It's strange and I couldn't find any documentation that explains it
|email accounts with appengine domain|
This isn't really a programming question, you need to look at Google
Apps. However, you can receive emails on your custom domain through
App Engine if you want to handle them programmatically.
|Is there any size limit on ndb.JsonProperty?|
While I'm not sure what the exact limit (if there is any) the
ndb.JsonProperty values are stored as Blobs, which means they can
store a lot of properties. Practically though you might run into other
problems processing millions of values. I would suggest you to try
with some test data with hundreds and move on steadily to thousands or