代码之家  ›  专栏  ›  技术社区  ›  Drew LeSueur

HttpError 502 with Google Wave Active Robot API fetch\u wavelet()

  •  0
  • Drew LeSueur  · 技术社区  · 15 年前

    我正在尝试使用googlewave主动机器人API fetch_wavelet() 我得到一个HTTP502错误

        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

    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的一个成员我得到了http502错误。

    IOError: HttpError 502
    
    1 回复  |  直到 15 年前
        1
  •  0
  •   Drew LeSueur    15 年前

    JoeGregorio回答了我关于GoogleWaveAPI谷歌小组的问题

    有一只老虫子 这可能是一种倒退 行为。

    robot.submit(wavelet) 行了,成功了!

    推荐文章