dcai / airnotifier

Push Notifications Server for Human Beings.
Other
593 stars 187 forks source link

'ServerNotFoundError' object has no attribute 'code' #239

Closed SavvyEngineer closed 3 years ago

SavvyEngineer commented 3 years ago

hi everything was ok and push notification was working fine but suddenlly i cannot send anything and in the logs i get this what should i do please help

File "/root/airnotifier/api/push.py", line 119, in post
    statuscode = ex.code
AttributeError: 'ServerNotFoundError' object has no attribute 'code'
 'ServerNotFoundError' object has no attribute 'code'
1628497152 E [MainThread][tornado.access][web.py:2242] 500 POST /api/v2/push (5.119.228.52) 25.07ms
1628497152 I [MainThread][root][__init__.py:217] PushHandler call ends 0.024480104446411133
SavvyEngineer commented 3 years ago

I found out there was a DNS resolution problem in my server and its now fixed