Just to be sure, are you connecting to a production app engine instance or a local dev server instance on some host? (I'm not certain if 'jisqyvap4' is filler or an actual hostname).
On Tuesday, January 19, 2016 at 12:11:11 AM UTC-5, Jeffrey Schiller wrote: > > Well that didn't do it. I have two modules. The default module which is > using the Java runtime and another module named "manhole" which uses the > python runtime. They both defined /remote_api (but they don't share > traffic, the the /remote_api on the Java module should be called). In any > event I completely removed the /remote_api handler from manhole.yaml and > the problem persists. > > -Jeff > > On Tuesday, January 19, 2016 at 12:00:44 AM UTC-5, Jeffrey Schiller wrote: >> >> Not on the /remote_api URL. There are other urls with admin constraints. >> Here is the definition in web.xml: >> >> <!-- Security constraint: require admin access for the appstats url --> >> <security-constraint> >> <web-resource-collection> >> <url-pattern>/appstats/*</url-pattern> >> <url-pattern>/convert/</url-pattern> >> </web-resource-collection> >> <auth-constraint> >> <role-name>admin</role-name> >> </auth-constraint> >> </security-constraint> >> >> Just /appstats/* and /convert (which is part of our app). >> >> Oh, but wait! I have another module which likely also uses /remote_api. >> It uses Python and may well ave the admin constraint. I'll finish this >> message and double check and post a follow up. >> >> -Jeff >> >> On Monday, January 18, 2016 at 10:40:29 PM UTC-5, Adam (Cloud Platform >> Support) wrote: >>> >>> Do you happen to have any admin security constraints set in your web.xml >>> as well? >>> >>> On Monday, January 18, 2016 at 9:50:06 PM UTC-5, Jeffrey Schiller wrote: >>>> >>>> >>>> I'm using the Python client side (version 1.9.31) against a Java >>>> server. Here is my shell output: >>>> >>>> jis@jis:~$ gcloud auth list >>>> Credentialed accounts: >>>> - [email protected] >>>> - [email protected] >>>> - [email protected] (active) >>>> - [email protected] >>>> - [email protected] >>>> >>>> To set the active account, run: >>>> $ gcloud config set account ``ACCOUNT'' >>>> >>>> jis@jis:~$ python -i /u1/SDK/google_appengine/remote_api_shell.py -p >>>> /remote_api jisqyvap4 >>>> Traceback (most recent call last): >>>> File "/u1/SDK/google_appengine/remote_api_shell.py", line 133, in >>>> <module> >>>> run_file(__file__, globals()) >>>> File "/u1/SDK/google_appengine/remote_api_shell.py", line 129, in >>>> run_file >>>> execfile(_PATHS.script_file(script_name), globals_) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/remote_api_shell.py", >>>> line >>>> 160, in <module> >>>> main(sys.argv) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/remote_api_shell.py", >>>> line >>>> 156, in main >>>> oauth2=True) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/remote_api_shell.py", >>>> line >>>> 74, in remote_api_shell >>>> secure=secure) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", >>>> >>>> line 768, in ConfigureRemoteApiForOAuth >>>> rpc_server_factory=rpc_server_factory) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", >>>> >>>> line 835, in ConfigureRemoteApi >>>> app_id = GetRemoteAppIdFromServer(server, path, rtok) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", >>>> >>>> line 569, in GetRemoteAppIdFromServer >>>> response = server.Send(path, payload=None, **urlargs) >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/appengine_rpc_httplib2.py", >>>> >>>> line 291, in Send >>>> NeedAuth() >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/appengine_rpc_httplib2.py", >>>> >>>> line 236, in NeedAuth >>>> RaiseHttpError(url, response_info, response, 'Too many auth >>>> attempts.') >>>> File >>>> "/u1/SDK/google_appengine/google/appengine/tools/appengine_rpc_httplib2.py", >>>> >>>> line 85, in RaiseHttpError >>>> raise urllib2.HTTPError(url, response_info.status, msg, >>>> response_info, stream) >>>> urllib2.HTTPError: HTTP Error 302: Found Too many auth attempts. >>>> >>> >>>> >>>> And here is how the Remote API is configured on the server (Java) side: >>>> >>>> <!-- Remote API --> >>>> <servlet> >>>> <display-name>Remote API Servlet</display-name> >>>> <servlet-name>RemoteApiServlet</servlet-name> >>>> >>>> <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class> >>>> <load-on-startup>1</load-on-startup> >>>> </servlet> >>>> <servlet-mapping> >>>> <servlet-name>RemoteApiServlet</servlet-name> >>>> <url-pattern>/remote_api</url-pattern> >>>> </servlet-mapping> >>>> >>>> (this is straight out of the documentation). >>>> >>>> -Jeff >>>> >>> -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9bcae0e2-a98e-4301-b403-1844ffc690f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
