Git Product home page Git Product logo

Comments (7)

dcai avatar dcai commented on August 23, 2024

Looks like the apns connection isn't established, can you check the status page?

from airnotifier.

mouneyrac avatar mouneyrac commented on August 23, 2024

Ah... I still forgot to upload the certificates.. + the airnotifier server wasn't even launched, the issues:

  1. I can broadcast when the APNS is not even launched => error 500 (and without certificate too)
  2. without certificate I can press Launch => error 500.

[E 121119 03:40:12 web:1085] Uncaught exception POST /applications/moodlehtml5app (202.74.162.6)
HTTPRequest(protocol='http', host='notify.moodle.net:8801', method='POST', uri='/applications/moodlehtml5app', version='HTTP/1.1', remote_ip='202.74.162.6', body='appname=moodlehtml5app&launchapns=true', headers={'Origin': 'http://notify.moodle.net:8801', 'Content-Length': '38', 'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': 'notify.moodle.net:8801', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.14 Safari/537.17', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,_;q=0.3', 'Connection': 'keep-alive', 'Referer': 'http://notify.moodle.net:8801/applications/moodlehtml5app', 'Cache-Control': 'max-age=0', 'Cookie': 'user=NTA2YTZlYzdkMWEzYTYzNjIyMGU0YTcy|1352692359|dddfba63c7a046de3694ff8b56d8c40209e70f8f; __cfduid=dc1f9ba5e08a3e2171e9fca572ae34b631352968574', 'Content-Type': 'application/x-www-form-urlencoded'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1809, in wrapper
return method(self, *args, *_kwargs)
File "/home/airnotifier/app/controllers/site_controller.py", line 332, in post
self.start_apns(app)
File "/home/airnotifier/app/controllers/site_controller.py", line 263, in start_apns
apn = APNClient(app['environment'], app['certfile'], app['keyfile'], app['shortname'], instanceid)
KeyError: 'certfile'

It's weird because my code contains the fix:
if 'certfile' in app and 'keyfile' in app and 'shortname' in app:
for instanceid in range(0, conns):
apn = APNClient(app['environment'], app['certfile'], app['keyfile'], app['shortname']
, instanceid)

  1. I refresh the page. I press Launch => the server is running (without the error this time and still without certificate).

from airnotifier.

mouneyrac avatar mouneyrac commented on August 23, 2024

PS: I'm going to setup my certificate so I'll not have these issues. But they still exists so I don't close them.

from airnotifier.

dcai avatar dcai commented on August 23, 2024

I can hide broadcast tab when apns isn't up

from airnotifier.

mouneyrac avatar mouneyrac commented on August 23, 2024

+1

from airnotifier.

dcai avatar dcai commented on August 23, 2024

will do that tonight, still working at the moment :)

from airnotifier.

dcai avatar dcai commented on August 23, 2024

close, no longer happening

from airnotifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.