Using remote data store on Google App Engine - google-app-engine

I am trying to use the remote data store on Google App Engine on localhost, but I really can't get it to work.
I have tried following this advice Remote_api configuration with App Engine which does seem to handle the first request and uses the remote datastore (I think), but on the subsequent request it does not, and I get the error:
"BadRequestError: app s~myapp cannot access app dev~myapp's data"
I have also tried the following:
BadRequestError: app s~myapphr cannot access app dev~myapphr's data. Why?
Google App Engine trying to access dev data
and a lot of other suggestions, but without any luck.
Any ideas on how to use the remote datastore on localhost ?
thanks
Thomas

Related

Google cloud datastore API cannot find project when App Engine application is disabled

I'm trying to connect and get data from Google Cloud Datastore API.
After disabling my App Engine Application (which have no use for me at the moment), I cannot access any GC Datastore API methods.
When I send my request, I always get the following response:
{ [Error: The project [my-project] does not exist.] code: 404, metadata: Metadata { _internal_repr: {} } }
I've already double-checked this and my project name is correct.
Accessing the google cloud console, I noticed that the datastore dashboard also show the same message:
Then, after enabling the app engine application again, everything works.
I know that GC Datastore was initially created to work with App Engine, but since last year it was supposed to be available everywhere (according to this).
Someone have a tip about this issue? Any help would be appreciated.
Thanks.
The Google Cloud Datastore API currently requires that the associated App Engine application not be disabled.
I've filed https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/107 to track this. It's something we may be able to fix in the future.

Cannot access admin console for a google cloud endpoints project running on xxx.appspot.com

I have a google cloud endpoint deployed and running on myapi.appspot.com. However, I cannot seem to access the admin console at the URL :
https://myapi.appspot.com/_ah/admin
in the same way as I can when running on localhost at
http://localhost:8080/_ah/admin
I had to go to :
Datastore Viewer under
https://appengine.google.com/
in order to see the data since there seems to be no way to view the data from https://cloud.google.com
It is also accessible under Storage -> Cloud Datastore -> Query as I later found out.

Getting SSL error in google app engine

I have created google app engine application. It works fine in my local system and also deployee successfully on server. but that url http://****.appspot.com/_ah/api/employeeendpoint/v1/employee/1 gives me below response.
{"error":{"errors":[{"domain":"global","reason":"sslRequired","message":"SSL is required to perform this operation."}],"code":403,"message":"SSL is required to perform this operation."}}
I have also try with https://****.appspot.com/_ah/api/employeeendpoint/v1/employee/1 but still not working.
Certain Google Cloud Platform products require SSL, you can simply enable SSL from your Cloud Console and it should work.
The documentation for App Engine, for Compute Engine, and for Cloud SQL.

View all requests on Google Cloud Console?

I just started using Google Cloud Console.
Even without creating any instance either on Compute Engine or App Engine, I see few request received by Google on my project. I am guessing these are the calls made by Google to set up my project. Found them on the main project homepage.
Is there a way for me to see all requests Google received for my project?
Thanks!
For Google Compute Engine, you can access them by going to "Operations". You can click on the Operation to get details about it.

Is there a local Google App Engine data viewer?

I want to use google's online GAE data viewer offline...
Is there some bunch of python code to display all my local data and even schema?
Yes, go to http://localhost:8000/_ah/admin (supposing you're running your local instance with dev_appserver.py).
NOTE: when the app is being deployed locally, it logs to which port the admin page is being binded

Resources