Matthew, your fix worked for me (almost). I was running a 1.4.2 remote_api_shell.py to connect to Java AE's /remote_api handler on development server:
D:\~src\(etc)>%pyrshell% -s 127.0.0.1:8888 -p /remote_api Email: [email protected] Password: Traceback (most recent call last): File "d:\soft\appengine\remote_api_shell.py", line 71, in <module> run_file(__file__, globals()) File "d:\soft\appengine\remote_api_shell.py", line 67, in run_file execfile(script_path, globals_) File "d:\soft\appengine\google\appengine\tools\remote_api_shell.py", line 115, in <module> main(sys.argv) File "d:\soft\appengine\google\appengine\tools\remote_api_shell.py", line 97, in main save_cookies=True, secure=options.secure) File "d:\soft\appengine\google\appengine\ext\remote_api \remote_api_stub.py", l ine 503, in ConfigureRemoteApi repr(app_info['rtok']))) google.appengine.ext.remote_api.remote_api_stub.ConfigurationError: Token valida tion failed during app_id lookup. (sent '999894510743', got 999894510743L) Similar to original post but there is a long-int type mismatch (not string-int). So with your advice I changed 2 lines to get it work: Original>>> app_info = yaml.load(response) if not app_info or 'rtok' not in app_info or 'app_id' not in app_info: raise ConfigurationError('Error parsing app_id lookup response') if app_info['rtok'] != rtok: raise ConfigurationError('Token validation failed during app_id lookup. ' '(sent %s, got %s)' % (repr(rtok), repr(app_info['rtok']))) app_id = app_info['app_id'] Changed>>> app_info = yaml.load(response) if not app_info or 'rtok' not in app_info or 'app_id' not in app_info: raise ConfigurationError('Error parsing app_id lookup response') if str(app_info['rtok']) != str(rtok): #*here* raise ConfigurationError('Token validation failed during app_id lookup. ' '(sent %s, got %s)' % (repr(rtok), repr(app_info['rtok']))) app_id = str(app_info['app_id']) #*and here* Regards, Spartan On May 25, 5:27 am, Matthew Blain <[email protected]> wrote: > I cannot reproduce this but could see what may be happening. What is > new in 1.5.0 is that we try to autodetect the appid in more cases, > what exact command line were you useing? > > If you change remote_api_stub.py, line 502 from this: > > if app_info['rtok'] != remote_token: > to this: > if str(app_info['rtok']) != remote_token: > > then it should work--let me know. > > --Matthew > > On May 23, 1:13 pm, Hans-Joachim Belz <[email protected]> > wrote: > > > > > > > > > Hi! > > > I had the same error. > > > After adding "--application <app-id>" to the "appcfg.py download_data" > > command every thing worked fine again. Something seems to go wrong > > when appcfg.py attempts to look up the app id by itself. > > > Seehttp://code.google.com/intl/de-DE/appengine/docs/python/tools/uploadi... > > for all options. > > > Regards, > > Achim. > > > On 11 Mai, 21:26, 종덕 안 <[email protected]> wrote: > > > > Here is error message.. > > > > Uploading data records. > > > [INFO ] Logging to bulkloader-log-20110512.041821 > > > [INFO ] Throttling transfers: > > > [INFO ] Bandwidth: 250000 bytes/second > > > [INFO ] HTTP connections: 8/second > > > [INFO ] Entities inserted/fetched/modified: 20/second > > > [INFO ] Batch Size: 10 > > > Please enter login credentials for eztripon.appspot.com > > > Email: [email protected] > > > Password for [email protected]: > > > Traceback (most recent call last): > > > File "/usr/local/bin/appcfg.py", line 76, in <module> > > > run_file(__file__, globals()) > > > > ...... > > > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > > google/appengine/ext/remote_api/remote_api_stub.py", line 502, in > > > GetRemoteAppIdFromServer > > > repr(app_info['rtok']))) > > > google.appengine.ext.remote_api.remote_api_stub.ConfigurationError:Tokenval > > > idationfailedduringapp_idlookup. (sent '612758995518', > > > got 612758995518) > > > > because of my mail-id format? e.g [email protected].. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
