I've been working on a Robot that does one thing when the robot is
added and another when a blip is added. The blip bit works, but the
onRobotAdded now gives a 500 error. I've tried going back to earlier
code and still gives me the error. There is nothing in the logs to
shed any light - debug messages are displayed. It is not reaching my
server and it is returning the HTML with the 500 error as a blip.
This may be a coincidence, but about the time this error started, a
script had stalled and the icon for the Robot is now broken. I have
tried deleting ad re-adding the robot but the image is still broken.
Given that the blip code is working, this is probably a red herring.
Also tried creating a new wave - no difference.
Any suggestions as to cause of this error very welcome!
Phoebe.
def OnRobotAdded(properties, context):
root_wavelet = context.GetRootWavelet()
waveid = root_wavelet.GetWaveId()
wave_name = root_wavelet.GetTitle()
logging.debug("Wavelet Name %s" % wave_name)
logging.debug("Parent ID %s" % waveid)
url = "http://myurl.com/add_wave/pheo/"
postit = {"waveid" : waveid,
"wave_name" : wave_name,
}
postdata = urllib.urlencode(postit)
result = urlfetch.fetch(url=url,
payload=postdata,
method=urlfetch.POST,
headers={'Content-Type': 'application/x-
www-form-urlencoded'})
root_wavelet.CreateBlip().GetDocument().SetText(result.content)
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" 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-wave-api?hl=en.