Hello,
i spent some time trying to upload data (using upload_data) command
into my local environment. I was always getting and Authentication
exception :
[ERROR ] Exception during authentication
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3167, in Run
self.request_manager.Authenticate()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1176, in Authenticate
remote_api_stub.MaybeInvokeAuthentication()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 533, in
MaybeInvokeAuthentication
datastore_stub._server.Send(datastore_stub._path, payload=None)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 348, in Send
self._Authenticate()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 401, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 294, in _Authenticate
self._GetAuthCookie(auth_token)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 242, in _GetAuthCookie
response.headers, response.fp)
HTTPError: HTTP Error 200:
[INFO ] Authentication Failed
After some testing and tweaking of the appengine_rpc.py I figured that
the appengine local code tries to identify if the environment is local
or not by looking at the host parameters of the request.
However, for some of us we like to use a different hostname than
localhost for running a local environment. I personnally use
local.jellydo.com and have a entry in my /etc/hosts file.
I had to hard code some changes to the have the app engine work:
line 153 : where the host checks for localhost, i check for
local.jellydo.com
line 253 : where the continue location is set to localhsot, i set it
to local.jellydo.com
I think it would be better to have the appengine_rpc.py be able to
identify the host of the local environment in a more configurable and
scable way.
--
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.