Note that there are some explanatory texts on larger screens.

plurals
  1. POPyapns Fault 500: 'Connection to the APNS server could not be made
    text
    copied!<p>I am trying to get my django app to send a push notification to an iOS device running the iOS app of this service. I am trying to use <a href="https://github.com/samuraisam/pyapns" rel="nofollow">pyapns</a> to send the notifications. But I can't get it to connect to the Apple push notification server.</p> <p>The service is mostly done this is the last thing that I want to get to work before I step out of beta. You can visit <a href="http://pagemove.se/" rel="nofollow">http://pagemove.se/</a> to read about the app. </p> <p>Here is the log:</p> <p><code> Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 75, in wrapper return func(*a, **kw) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 67, in wrapper return func(*a, **kw) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 97, in notify return _xmlrpc_thread(*f_args) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 127, in _xmlrpc_thread errback(e) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 65, in errback_wrapper errback(e) # not an instance of UnknownAppID - nothing we can do here File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 55, in errback raise e xmlrpclib.Fault: </code></p> <p>Has anybody had this problem? Can it be same thing with the .pem file? or the setup of the ubuntu-server? Can i have forgotten to open some ports in the router?</p> <p>Edit</p> <p>I did a test to se if the ports for apns is open. I did</p> <pre><code>telnet gateway.sandbox.push.apple.com 2195 </code></pre> <p>and got </p> <pre><code>Trying 17.149.34.65... Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is '^]'. </code></pre> <p>I do think that the server and router are setup correct. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload