Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getStatus() failed: Parse Error: Invalid header value char #125

Open
skeljp opened this issue Dec 30, 2023 · 0 comments
Open

getStatus() failed: Parse Error: Invalid header value char #125

skeljp opened this issue Dec 30, 2023 · 0 comments

Comments

@skeljp
Copy link

skeljp commented Dec 30, 2023

Thanks for a making very useful plugin !!
When I set the stateful switch with the config as below;

"accessory": "HTTP-SWITCH",
"name": "room",
"switchType": "stateful",
"timeout": 1000,
"onUrl": "https://trigger.macrodroid.com/xxxxxxxxx/on",
"offUrl": "https://trigger.macrodroid.com/xxxxxxxxx/off",
"statusUrl": "http://192.168.68.1:8080/livinglightstatus",
"_bridge": {
    "username": "00:00:00:00:00:00"

and statusUrl "http://192.168.68.1:8080/livinglightstatus/index.html" responds just only to "0" or "1".
However, The plugin responds "getStatus() failed: Parse Error: Invalid header value char" in the homebridge log so the switch shows "no response" in Homekit.

Could I know how to solve this issue?

Version

  • homebridge: Homebridge v1.7.0
  • homebridge-http-switch: v0.5.36
  • Node.js; v20.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant