GAE:渠道API:ApplicationError:1

时间:2017-11-20 20:19:26

标签: google-app-engine channel-api

GAE似乎在之前运行过的某些代码上抛出ApplicationError:1。它可能是一般的GEA问题或某些版本升级问题,因为代码最后一段时间使用过。我该如何调试该错误?

ApplicationError: 1  (/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py:1552)
Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "/base/data/home/apps/e~(AppId)/dev.(VersionId)/worker.py", line 732, in post
    channel.send_message('status-' + userId, str(emailCount) + ":" + str(emailTotal))
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/channel/channel.py", line 242, in send_message
    raise _ToChannelError(e)
ApplicationError: ApplicationError: 1   

1 个答案:

答案 0 :(得分:0)

Channels API已关闭;这个expprecation页面是here

它声明:

  

Channel API的扩展性不足以支持它的工作负载   打算用于,因此未被广泛采用。据此,支持   对于Channel API,将在短时间内关闭   维修工作于2017年7月13日开始,如停机时所述   时间表。该服务将于 10月31日永久关闭,   2017

建议的替代方法是使用Firebase:

  

有关使用Firebase实时数据库替换渠道API功能的信息,请参阅Using Firebase for realtime events on App Engine