-
I wrote a small "Read scale script" in the server to convert the values of an MQTT variable from text to bool. It fails to produce the expected result and when I do a Run TEST in the scripts editor I see the message "Http failure response for http://:1881/api/runscript Unathorized!. I also get the same message if I run the script in the client (browser). Using the official FUXA:latest docker image, pulled on 30-03-2025. H/w: RPI 5, OS: Debian 12 (bookworm), |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, I suppose that you are using the last version, try to share a small example to reproduce the issue |
Beta Was this translation helpful? Give feedback.
Hi unocelli,
I worked out what causes this issue and also how to fix it.
I had another script which was called "Test script". Having a space character in the name of one of the scripts results in the error message "Http failure response for http://:1881/api/runscript Unathorized!" for all scripts. When the offending script is renamed to remove the space character, this fixes the issue.
Creating a new script with a space character is possible (if you don't pay attention to the information displayed!) The script rename function prevents this.