I'm trying to make my app engine server send APNS notifications, and for that I'm using template code I got from this project (which is said to work, so it's possible): https://github.com/GarettRogers/appengine-apns-gcm
For now, I want to make this work on my local development.
When getting to actually trying to open the socket, I get the error stack below.
My guess is that maybe app engine needs sudo permissions to do this (I'm using a mac). If so - does anyone know how I can make app engine run with sudo permissions?
If not - can anyone tell me what the problem is and how to fix it?
Thanks.
File "/Users/xxx/Downloads/XXX/ssl.py", line 392, in wrap_socket
ciphers=ciphers)
File "/Users/xxx/Downloads/XXX/ssl.py", line 114, in __init__
if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM:
File "/Users/xxx/Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/dist27/socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
INFO 2014-04-15 19:42:02,488 module.py:627] default: "POST /content/create_action HTTP/1.1" 500 228
File "/Users/xxx/Desktop/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/remote_socket/_remote_socket.py", line 1112, in getsockopt
raise _SystemExceptionFromAppError(e)
error: [Errno 13] Permission denied