Broken application environment (Python)

0 views
Skip to first unread message

Daniel Faust

unread,
Oct 7, 2009, 7:28:58 AM10/7/09
to Google Wave API
I'm having a hard time here. My app won't even do logging on the most
basic level. After an hour of trying and searching I decided to
"register" a new gae application, I uploaded the code "as is" to that
new environment, and there it's working perfectly.

A.appspot.com is not working,
B.appspot.com is working, both have exactly the same code.

No quota warnings whatsoever. Capabilities.xml always mirrored the
robot handler configuration and versioning as expected, so somehow I
can deduce that the code get's uploaded and somehow executed, but in a
broken environment.

Luckily this is a low usage testing bot so there's no important
information there, so I'd like to somehow "reset" the entire
application. Is this possible?

Before it broke I was messing around with the waveapi files trying to
create waves, obviously with no luck.

--
Daniel

Daniel Faust

unread,
Oct 7, 2009, 5:47:51 PM10/7/09
to Google Wave API
Not even the most basic stuff works:

------------ main.py ------------
#!/usr/bin/python2.5

import logging
logging.info('base')

from waveapi import events
from waveapi import model
from waveapi import document
from waveapi import robot

def OnBlipSubmitted(properties, context):
logging.info('OnBlipSubmitted')

if __name__ == '__main__':
logging.info('__main__')
_robot = robot.Robot('MyBot, '1', image_url='http://wave-
mybot.appspot.com/public/image.png', profile_url='http://wave-
mybot.appspot.com/public/profile.htm')
_robot.RegisterHandler('BLIP_SUBMITTED', OnBlipSubmitted)
_robot.Run(debug=True)
------------------------------------

A thing to note is that logging.info('__main__') never logs to the
log, neither is logging.info('base').

But, "http://wave-mybot.appspot.com/public/image.png" and "http://wave-
mybot.appspot.com/public/profile.htm" are being hosted correctly (they
are viewable in a browser), which means that robot.Robot('...') is
effectively being executed.

OnBlipSubmitted is apparently never executed.

When I comment out "from waveapi import robot" I do get a traceback
when robot.Robot('') is being called, but none of the logging messages
are actually logged.

Who can I contact to deal with this issue?

--
Daniel

Austin Chau (Google employee)

unread,
Oct 7, 2009, 5:54:44 PM10/7/09
to google-...@googlegroups.com
Hey Daniel,

Can you send me your app id and any request logging info you have in GAE that might help? you can email this info to me api.a...@google.com

Thanks,
Austin

pamela fox (Google employee)

unread,
Oct 13, 2009, 4:37:27 AM10/13/09
to Google Wave API
Hey Daniel-

This is most likely this issue:
http://code.google.com/p/google-wave-resources/issues/detail?id=278

We're working on releasing the fix.

- pamela

On Oct 8, 8:54 am, "Austin Chau (Google employee)"
<api.aus...@google.com> wrote:
> Hey Daniel,
> Can you send me your app id and any request logging info you have in GAE
> that might help? you can email this info to me api.aus...@google.com
Reply all
Reply to author
Forward
0 new messages