I am trying to send a notification to an ISY 994i. I am setting up a custom notification to use its REST API to set a variable in the ISY. The ISY requires basic authentication, but when I check this box and add a user name and password I get what looks like an uncaught exception. The first few lines of the stack trace show
TypeError
TypeError: encodestring() takes exactly 1 argument (2 given)
Traceback (most recent call last)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 128, in __call__
return self.app(environ, start_response)
This is 100% repeatable for me. I tried editing a notification and setting up a new one. I have the ISY URL in the URL, the rest command in the path, get, URL encoded, basic auth on, a user name and a password. I do not get the exception when I do not use the basic authentication. Am i doing something wrong, is this a known bug, and is there a work around?
I am running the AD2PI Network Appliance that I bought pre-configured.
Thanks