Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:59:01+00:00 2026-06-03T04:59:01+00:00

I am trying to get my django app to send a push notification to

  • 0

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 pyapns to send the notifications. But I can’t get it to connect to the Apple push notification server.

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 http://pagemove.se/ to read about the app.

Here is the log:


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:

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?

Edit

I did a test to se if the ports for apns is open. I did

telnet gateway.sandbox.push.apple.com 2195

and got

Trying 17.149.34.65...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.

I do think that the server and router are setup correct.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:59:02+00:00Added an answer on June 3, 2026 at 4:59 am

    I had the same problem – it’s frustrating, because it can make the connection, the .pem file is likely improperly formatted.

    Follow this fantastic step-by-step set of directions to generate the correct final .pem file:

    http://blog.serverdensity.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

    Also, set passwords when you’re exporting the cert and key from Keychain – I know it says you can do without, but I found setting the password to something random on export from Keychain, then following the final openssl rsa ... step to remove said password before concatenating the files helped fix the problems I was having.

    I can’t speak to an absolute certainty, but for me, it was the .pem files, which generated the exact error messages you’re receiving above.

    The final .pem file is text and should be formatted a little something like this (note that the info here is randomly generated and I repeated lines a lot):

    https://gist.github.com/58f79e1cd811f62bf011

    Hope this helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get Django running on GAE using this tutorial . When I
I am trying to get a Django app running on Apache with mod_wsgi. I
I am trying to install django-notification app[1] and I get an error when I
I'm trying to get a Django app running with Lighttpd. I followed the directions
I'm trying to get up and running with the django-testapp on app engine. I've
I am trying to get Django 1.1 working on Google App Engine. I followed
I'm running CentOS 5, and am trying to get a django application working with
I'm trying to get the django-cms to work on google-app-engine. Did anyone succeed in
hi trying to get a nginx+gunicorn+django site up and running /it works well in
I am trying to get my Django project running on the production server. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.