Error 401 when sending an http request #58
-
Hi there, I wanted to congratulate you on this project and ask for some help. I have a smart home with an Autelis Somfy RTS box, which is connected to and controls my shades in the house. The syntax I use (using a ISY 994i) for this is GET http://IPADDRESS/set.cgi?&addr=1&gp=14&val=up I get the following when I try to executeError sending request (HTTP status code 401): null
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
I don’t know the system but that sounds like it used HTTP Basic Authentication or some other kind of authentication which you haven’t configured in the config of this plugin. Has your browser ever asked you for a password (for the webpage you mentioned)? |
Beta Was this translation helpful? Give feedback.
-
Hi @muddycharles68 your issue is with basic auth, although you're not invoking curl correctly either. You need to put the entire HTTP portion in quotes. (Note, you may need to specify this as a POST, not GET command). That being said, you will still need to pass the auth header correctly to curl to avoid the 401 error. Let's assume your username is If it doesn't work, troubleshoot that first. Once it's working, you can copy the config properly into the blinds config. You can run the following to determine the other part of the Authorization header. If you still have trouble, please post your blinds config. |
Beta Was this translation helpful? Give feedback.
You have a number of issues here:
Basic
in your AuthorizationTry this: