geoph9/hass-gshell-extension

Error 400 Bad Request on any POST request

Closed this issue · 0 comments

Hello

If I try to click on any togglables, I get an error 400 from HA. States are working perfectly, and I get the list of switches and sensors in preferences, so connection with HA is working, the problem is somewhere in the json data.

From the same computer I can change the switches with curl.

I tried to debug it, and found a strange thing with wireshark: if I send the POST request with the extension data it is sent as Line-based text data, while if I send it with curl, it's as a json.

Screenshots from wireshark:

POST from the extension:
kép

POST from curl:
kép

hass-gshell: 14 from gnome extensions
libsoup3: 3.2.2-1
GNOME: 43.2
Kernel: 6.1.4-arch1-1
Home Assistant 2023.1.1