-
Notifications
You must be signed in to change notification settings - Fork 4
ApplicationError in postMessage.py #28
Description
Returned by APNS while creating socket. Rare occurrence.
ApplicationError: 4 Unknown error.
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in call
rv = self.handle_exception(request, response, e)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in call
rv = self.router.dispatch(request, response)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in call
return handler.dispatch()
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
return method(_args, *_kwargs)
File "/base/data/home/apps/ssafeslinger-messenger/01060000p.382656230585809204/postMessage.py", line 302, in postsafeslinger-messenger/01060000p.382656230585809204/apns.py", line 523, in send_notification
status = apns.gateway_server.send_notification(recipientToken, payload, identifier=identifier)
File "/base/data/home/apps/s
self.write(message)
File "/base/data/home/apps/ssafeslinger-messenger/01060000p.382656230585809204/apns.py", line 265, in writesafeslinger-messenger/01060000p.382656230585809204/apns.py", line 256, in _connection
_, wlist, _ = select.select([], [self._connection()], [], WAIT_WRITE_TIMEOUT_SEC)
File "/base/data/home/apps/s
self._connect()
File "/base/data/home/apps/s~safeslinger-messenger/01060000p.382656230585809204/apns.py", line 204, in _connect
self._socket.connect((self.server, self.port))
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", line 752, in connect
address_hostname_hint=_hostname_hint)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", line 611, in _CreateSocket
raise _SystemExceptionFromAppError(e)
ApplicationError: ApplicationError: 4 Unknown error.