使用Google Wave Active Robot API的HttpError 502 fetch_wavelet()

时间:2010-06-06 03:00:19

标签: python google-app-engine google-wave

我正在尝试使用Google Wave Active Robot API fetch_wavelet()并收到HTTP 502错误

示例:

    from waveapi import robot
    import passwords

    robot = robot.Robot('gae-run', 'http://images.com/fake-image.jpg')
    robot.setup_oauth(passwords.CONSUMER_KEY, passwords.CONSUMER_SECRET, server_rpc_base='http://www-opensocial.googleusercontent.com/api/rpc')
    wavelet = robot.fetch_wavelet('googlewave.com!w+dtuZi6t3C','googlewave.com!conv+root')
    robot.submit(wavelet)
    self.response.out.write(wavelet.creator)

但我得到的错误是:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/clstff/gae-run.342467577023864664/main.py", line 23, in get
    robot.submit(wavelet)
  File "/base/data/home/apps/clstff/gae-run.342467577023864664/waveapi/robot.py", line 486, in submit
    res = self.make_rpc(pending)
  File "/base/data/home/apps/clstff/gae-run.342467577023864664/waveapi/robot.py", line 251, in make_rpc
    raise IOError('HttpError ' + str(code))
IOError: HttpError 502

有什么想法吗?


编辑:

clstff@appspot.com不是wave的成员时,我会收到正确的错误消息

Error: RPC Error500: internalError: clstff@appspot.com is not a participant of wave id: [WaveId:googlewave.com!w+Pq1HgvssD] wavelet id: [WaveletId:googlewave.com!conv+root]. Unable to apply operation: {'method':'robot.fetchWave','id':'655720','waveId':'googlewave.com!w+Pq1HgvssD','waveletId':'googlewave.com!conv+root','blipId':'null','parameters':{}}

但当clstff@appsot.com 成为wave的成员时,我会收到http 502错误。

IOError: HttpError 502

1 个答案:

答案 0 :(得分:0)

Joe Gregorio在Google Wave API Google小组上回答了我的问题

  

您是否对此进行了任何更改   在提交之前小波?我认为   有一个旧的错误发送   空的改变会导致502,   这可能是一种回归   行为。

如果我删除了robot.submit(wavelet)行,那就有效了!