I have a project which requires uploading a ton of data I have
collected. The Remote API seems like the ticket.

Being generally a good citizen I want to try this on my development
environment before going nuts on the Google server. However despite
much Googling, no joy.

More specifics: it would seem Nick Johnson's article is as good a
starting point as any (I've seen numerous other tutorials etc):
http://code.google.com/appengine/articles/remote_api.html

I set up the interactive console as he described. I have a super
simple app (again, before going nuts with the actual app, let's just
get a toy example going) called 'remotetest' running on port 8091
launched via the MacOSX GAE launcher. I have a main.py, in that a
model 'Greeting' (as in the hello world thingy).

app.yaml has these lines:

- url: /remote_api
  script: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/handler.py

OK, simple enough. I run it as:

python appengine_console.py remotetest localhost:8091

(this wasn't totally clear but it didn't gripe)

Then:

Username:
Password:
App Engine interactive console for remotetest
>>> import main
>>> from google.appengine.ext import db
>>> main.Greeting(content='yo').put()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py", line 785, in put
    return datastore.Put(self._entity)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore.py", line 169, in Put
    apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Put', req, resp)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/apiproxy_stub_map.py", line 72, in MakeSyncCall
    apiproxy.MakeSyncCall(service, call, request, response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/apiproxy_stub_map.py", line 255, in MakeSyncCall
    rpc.CheckSuccess()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/apiproxy_rpc.py", line 111, in CheckSuccess
    raise self.exception
HTTPError: HTTP Error 404: Not Found
>>>

OK so it's not found. Also w/ the authenticating, that also isn't
clear: why authenticate against the development server? Even if you
did, what username/password would you use? Surely not yr gmail
account? Things are not clear.

Thanks in advance, and so on. Have had luck w/ past forays into Google
App Engine (indicating my environment is not hopelessly broken), just
no luck on this one.

SDC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to