MisterWil / abodepy

A thin Python wrapper for the Abode alarm API
MIT License
50 stars 17 forks source link

abodecl --listen argument not working #3

Closed arsaboo closed 7 years ago

arsaboo commented 7 years ago

Trying to use the --listen argument to listen to Abode events, but it gives unexpected status code error. Here are the complete logs.

arsaboo@aloknuc:~$ python3 /home/arsaboo/abodepy/abodecl.py --username USERNAME --password PASSWORD --listen
No devices specified, adding all devices to listener...
Listening for device updates...
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /api/v1/panel HTTP/1.1" 200 739
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): my.goabode.com
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /socket.io/?EIO=3&t=1503009522268-0&transport=polling HTTP/1.1" 403 None
WARNING:socketIO-client:my.goabode.com:443/socket.io [engine.io waiting for connection] unexpected status code (403 {"code":4,"message":"origin not allowed"})
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /socket.io/?EIO=3&t=1503009523619-0&transport=polling HTTP/1.1" 403 None
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /socket.io/?EIO=3&t=1503009524704-0&transport=polling HTTP/1.1" 403 None
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /socket.io/?EIO=3&t=1503009525792-0&transport=polling HTTP/1.1" 403 None
DEBUG:urllib3.connectionpool:https://my.goabode.com:443 "GET /socket.io/?EIO=3&t=1503009526878-0&transport=polling HTTP/1.1" 403 None

Not sure what am I missing here. Also, marking @amelchio so that he can be updated on the progress.

MisterWil commented 7 years ago

Merged, thanks!