Comments (7)
Looks like the apns connection isn't established, can you check the status page?
from airnotifier.
Ah... I still forgot to upload the certificates.. + the airnotifier server wasn't even launched, the issues:
- I can broadcast when the APNS is not even launched => error 500 (and without certificate too)
- 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)
- I refresh the page. I press Launch => the server is running (without the error this time and still without certificate).
from airnotifier.
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.
I can hide broadcast tab when apns isn't up
from airnotifier.
+1
from airnotifier.
will do that tonight, still working at the moment :)
from airnotifier.
close, no longer happening
from airnotifier.
Related Issues (20)
- Not able to send Notificaton HOT 5
- Error SENDER_ID_MISMATCH HOT 3
- Cannot connect to airnotifier HOT 1
- Restart Error - Push Error HOT 9
- Connection refused when trying to run ./install.py HOT 1
- I can't register in Airnotifier HOT 1
- Error 500 object has no attribute 'encode' HOT 4
- Use one database only HOT 2
- ... day to go Error
- "day to go" message is not multilingual
- Dockerfile and ENV HOT 1
- Cannot login HOT 3
- Custom data gets deleted in final fcm payload HOT 1
- App Crash on Push Notification while in Foreground HOT 1
- Can Not Send Broadcast notifications. HOT 1
- 'ServerNotFoundError' object has no attribute 'code' HOT 1
- Get 599 timeout connection error when sending notification
- module: pymongo not found HOT 1
- No sound & vibration on iOS and older Android version (7.0 Nougat) HOT 3
- Incompatibility with Python 3.10 and up due to hyper dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airnotifier.