remoteapi

How to authenticate Google Appegine (Python) Remote API access

纵饮孤独 提交于 2019-12-05 22:14:44
I wrote a script that is supposed to run locally on a computer and modify some GAE data store entries. This is how I connect to my GAE: def auth_func(): return ('username@gmail.com','topsecret') #return ('seconduser@gmail.com','topsecret2') def connect(): remote_api_stub.ConfigureRemoteApi(None,'/_ah/remote_api', auth_func, 'myapp.appspot.com', secure=True) remote_api_stub.MaybeInvokeAuthentication() When I try to authenticate to the remote API everything works fine as long as I use the account that actually created the appengine. In the GAE permissions I added a second user as 'owner' who

How do I get live data from my production App Engine app to my local dev app?

帅比萌擦擦* 提交于 2019-12-04 23:47:11
问题 I'd like to know if anyone has pointers about how to configure AppEngine remote_api, to so that I can debug my code locally but use the remote_api to fetch some data from my server. That way, I can test against real information. Thanks! 回答1: If you want to debug your own script with using data from High Replication Datastore, then read Using the Remote API in a Local Client. First you need to enable remote_api in app.yaml and upload the application. Then you add this part to your script: from

How do I get live data from my production App Engine app to my local dev app?

一世执手 提交于 2019-12-03 15:24:39
I'd like to know if anyone has pointers about how to configure AppEngine remote_api, to so that I can debug my code locally but use the remote_api to fetch some data from my server. That way, I can test against real information. Thanks! If you want to debug your own script with using data from High Replication Datastore, then read Using the Remote API in a Local Client . First you need to enable remote_api in app.yaml and upload the application. Then you add this part to your script: from google.appengine.ext.remote_api import remote_api_stub def auth_func(): return ('your_username', 'your

How to debug server code in eclipse on deployed appengine database?

房东的猫 提交于 2019-12-01 23:48:25
I have a Google AppEngine (Java) project in Eclipse. I want to debug my local code in Eclipse but use the deployed database on AppEngine. Until now I use Remote API with username/password (old way) This method will be deprecated and I want to use OAuth but when I try to use it, it throws an exception: java.lang.IllegalStateException: OAuth-based authorization not supported for clients running on App Engine at com.google.appengine.tools.remoteapi.RemoteApiOptions.getOrCreateHttpTransportForOAuth(RemoteApiOptions.java:359) at com.google.appengine.tools.remoteapi.RemoteApiOptions

Appengine remote_api_shell not working with application-default credentials since update

安稳与你 提交于 2019-11-28 01:13:37
I recently updated my gcloud libraries from 118.0.0 to 132.0.0 and immediately remote_api_shell no longer worked. I went through a number of permutations of re-logging in, to set the application-default credentials through gcloud, and to use a service account and environment variable. All permutations failed with the same error message: Traceback (most recent call last): File "/Users/mbostwick/google-cloud-sdk/bin/remote_api_shell.py", line 133, in <module> run_file(__file__, globals()) File "/Users/mbostwick/google-cloud-sdk/bin/remote_api_shell.py", line 129, in run_file execfile(_PATHS

Remote_api configuration with App Engine

匆匆过客 提交于 2019-11-27 07:23:43
问题 Using Python, I'm trying to connect to my AppEngine app's remote_api handler, but I keep getting an error. What I want to do is set up the remote_api stubs to route database calls through that and access my app's datastore directly. So, first, I import the remote_api libraries, then call the ConfigureRemoteApi on the stub module, and try to use the calls to the remote datastore. Here's some sample code: from google.appengine.ext.remote_api import remote_api_stub def test_remote_api(): # This

Appengine remote_api_shell not working with application-default credentials since update

て烟熏妆下的殇ゞ 提交于 2019-11-26 21:52:01
问题 I recently updated my gcloud libraries from 118.0.0 to 132.0.0 and immediately remote_api_shell no longer worked. I went through a number of permutations of re-logging in, to set the application-default credentials through gcloud, and to use a service account and environment variable. All permutations failed with the same error message: Traceback (most recent call last): File "/Users/mbostwick/google-cloud-sdk/bin/remote_api_shell.py", line 133, in <module> run_file(__file__, globals()) File