nebulous / infinitude

Open control of Carrier/Bryant thermostats
MIT License
224 stars 50 forks source link

POST to set hold is returning XML instead of JSON #185

Closed MizterB closed 5 months ago

MizterB commented 5 months ago

There seem to be differing behaviors from Infinitude when POSTing a hold command...

On my system, a POST to http://host:3000/api/1/hold with {'hold': 'on', 'activity': 'manual', 'until': '06:30'} is returning a JSON response of {"activity":"manual","hold":"on","until":"06:30"}.

On the system referred to below, the exact same call appears to be returning the system config XML. Please see https://github.com/MizterB/homeassistant-infinitude-beyond/issues/2

ac-haynes commented 5 months ago

I don't have a root cause, but I deleted the container volume, and redeployed latest and it started returning JSON responses. I had been using the same persistent docker volume for ~2 years. We can close this out unless you want to troubleshoot it

MizterB commented 5 months ago

If that's the case, I don't think we need anyone spending time troubleshooting old code. Thank you for the update.

nebulous commented 5 months ago

yep - this was a bug previously fixed (here 6842efa288db). The latest container should return json by default.