remoteapi

Appengine remote_api_shell not working with application-default credentials since update

青春壹個敷衍的年華 提交于 2019-12-24 10:46:21
问题 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

Adding text to the page of a build triggered by the Jenkins remote API

寵の児 提交于 2019-12-24 02:04:45
问题 I have a Jenkins build system up and running for a project. The build is triggered via the remote API functionality of Jenkins. When a commit is made to the project we send an HTTP request build trigger to the Jenkins process running on our local server; with a parameter that specifies the revision of the trunk project folder in the SVN repository that we want to checkout and build. We also send the SVN username and commit message for the revision as an additional http parameter. So the URL

Using GAE remote api for debugging from localhost - Connecting too late?

≯℡__Kan透↙ 提交于 2019-12-23 02:38:12
问题 Trying to use Google App Engine's remote_api so that we can do line-by-line debugging through the IDE. The remote api works great at first. The application is able to successfully retrieve information from the database. The error occurs when wepapp responds to the client browser. The Code: It is very similar to the example given in app engine's documentation: from model import My_Entity from google.appengine.ext.remote_api import remote_api_stub # Test database calls def get(w_self): remote

How to authenticate Google Appegine (Python) Remote API access

匆匆过客 提交于 2019-12-22 10:58:32
问题 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

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

半城伤御伤魂 提交于 2019-12-20 03:30:19
问题 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

Download postview image in original size

感情迁移 提交于 2019-12-12 06:12:29
问题 Trying to download the postview image in original size I'm getting an error on setting "Postview image size" parameter to "Original". Downloading (and setting) the postview image with "2M" size is working well. Are there any undocumented limitations on downloading original sized postview images? My camera model is ILCE 5100 with latest firmware installed. Edit: json request: {'method': 'setPostviewImageSize', 'params': ["Original"], 'id': 1, 'version': '1.0'} response: {'id': 1, 'error': [1,

Enable Docker Remote API - raspberry pi / raspbian

白昼怎懂夜的黑 提交于 2019-12-11 06:56:27
问题 My starting point is: How to use docker remote api to create container?, so I edit /etc/init/docker.conf and update 2 occurrences of the DOCKER_OPTS variable to: DOCKER_OPTS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock' Then, a simple test to list docker images fails: $ service docker restart $ curl -X GET http://10.143.0.218:4243/images/json curl: (7) Failed to connect to 10.143.0.218 port 4243: Connection refused Docker version is: $ sudo docker version Client: Version: 1.12.3 API

Remote API, Objectify and the DevServer don't like transactions?

眉间皱痕 提交于 2019-12-11 06:26:07
问题 I am using objectify 4 to write to the HRD datastore. Everything works fine in unit tests and running the application in devserver or production. But when I try connect using the REMOTE API to the devserver datastore, an error is thrown when the code starts a XG transaction. While connecting with the Remote API, it seems to think that HRD is not enabled. This is how I connect ... public static void main(String[] args) { RemoteApiOptions options = new RemoteApiOptions().server("localhost",

What is equivalent remote api command to 'docker run -d'?

泄露秘密 提交于 2019-12-08 19:16:07
问题 I'm trying to call docker commands via remote api. Docker remote api does not seem to have 'Detached mode' option. http://docs.docker.io/en/latest/commandline/command/run/ I could use this app in the bash, and I would like to use this via remote api. https://github.com/grigio/docker-stringer 回答1: Indeed, the remote API does not have a 'detach' mode as the 'attach' mode is an extra endpoint. If you want to run in detach mode with the remote API, simply create and start your container without

remote api gae ancestor query

随声附和 提交于 2019-12-06 12:52:43
问题 I tried to use remote api and get exception, when execute query with ancestor. Exception: query must have same application id (app) as the contained ancestor key: query.app:'firtsAppId' != query.ancestor.app:'secondAppId' where firtsAppId, secondAppId - it's my app ids in 'remote' and 'client' on appengine-web.xml AppEngine SDK 1.7.4 Windows 8 x64 jdk1.6.0_38 x64 Code below: RemoteApiOptions options = new RemoteApiOptions().server(appId, 443).credentials(username, password); installer = new