2017-11-20 6 views
1

GAE는 이전에 작동했던 일부 코드에서 ApplicationError : 1을 던집니다. 코드가 오래전에 사용 되었기 때문에 일반적인 GEA 문제이거나 일부 버전 업그레이드 문제 일 수 있습니다. 그 오류를 어떻게 디버깅하겠습니까?GAE : 채널 API : ApplicationError : 1

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 

답변

0

채널 API가 종료되었습니다. 사용 중지 페이지는 here입니다.

그것은 상태 :

The Channel API did not scale well enough for the workloads it was intended for and so did not find wide adoption. Accordingly, support for the Channel API will be shut down for brief periods of time for maintenance beginning on July 13, 2017, as described in the shutdown timetable. The service will be turned off permanently on October 31, 2017.

권장되는 대안은 사용하는 중포 기지입니다 :

See Using Firebase for realtime events on App Engine for information on replacing Channel API functionality with the Firebase Realtime Database.