dustindclark / homebridge-rinnai-controlr

Rinnai Control-R interface for homebridge
Apache License 2.0
12 stars 7 forks source link

400 response #13

Closed ericfrancisco closed 1 year ago

ericfrancisco commented 1 year ago

Not sure what's going on here, but can no longer communicate with device. Works perfectly with control-r app, I've tried reinstalling from scratch, deleting cache, etc to no avail

[11/15/2022, 12:57:32 PM] [RinnaiControlR] setRecirculateActive to true for device AC000W010679060 [11/15/2022, 12:57:32 PM] [RinnaiControlR] Sending state to Rinnai. Endpoint: https://698suy4zs3.execute-api.us-east-1.amazonaws.com/Prod/thing/CR_267313c5-373d-4d23-bd44-ed6699ef0bf9/shadow Request: {"method":"patch","body":"{\"set_priority_status\":true,\"recirculation_duration\":\"15\",\"set_recirculation_enabled\":true}","headers":{"User-Agent":"okhttp/3.12.1","Content-Type":"application/x-www-form-urlencoded","Accept-Encoding":"gzip","Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJraWQiOiJIank1K2NPZUhvWHQyaU5wOVJxa2dHd3grajRLXC93T3FkRytRZ2ZmV0RDcz0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI5Y2I2YTZjMC0yZjgyLTQzMWEtYjI5Yy04MDdjMTY5N2FmNWQiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfT2N3cFJRYk1NIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiZXJpYy5mcmFuY2lzY29AbWUuY29tIiwiYXVkIjoiNWdocTNpNms0cDlzN2RmdTM0Y2ttZWM5MSIsImV2ZW50X2lkIjoiMzdmMjM5NWMtNjQ2Yy00NjQxLWJjZTMtMzdjMzM5NWNjZTg2IiwidG9rZW5fdXNlIjoiaWQiLCJhdXRoX3RpbWUiOjE2Njg1MzQ5OTcsInBob25lX251bWJlciI6IisxOTE5ODAyNzk3MyIsImV4cCI6MTY2ODUzODU5NywiaWF0IjoxNjY4NTM0OTk3LCJlbWFpbCI6ImVyaWMuZnJhbmNpc2NvQG1lLmNvbSJ9.Ox_qel-lH0ZO8O0do-_Q_z7LrY-jcR9lWkghez-GIT3qfC7_HoyPEsC6EqjoGKjvXuzc3FBOzvmdfDjnyYm_jXvJXNdQfNSrdEGE7kEmEG9G8B6B3-ofUGXo1VYHPSfF64Xc2P6WT_4etK9BoBcRlkViWq11KV7r7S6ORiXHQjyCResNJWsj9mckSAZFy5YGzvH9CZbnHT9ctMbX_IiG6FEaHLydNwQzPhm2mXhOASrzhNSDvwkgkF5X_GyEV8V1u4BnoWvU91qc7DaHRiOgd4-ZFbwLo3yZDEom6zNnwop_zqeeccYvU1hUMIcCDNp-K0MVo2Q00FHI0Rscbj_jzQ"}} [11/15/2022, 12:57:32 PM] [RinnaiControlR] Set state responded with 400 Bad Request. Body: {}

brucedeen commented 1 year ago

Having the exact same issue. I ran the command in postman and if i add a "Host" into the request the 400 goes away.

dustindclark commented 1 year ago

I'm unable to recreate. Can you try updating to 1.0.25? All dependencies have been upgraded in the latest version.

mjacobson7 commented 1 year ago

I was having issues as well and just upgraded to 1.0.25 and am still not able to communicate with water heater.

dustindclark commented 1 year ago

Try downgrading to Node 16.17.0. Details documented on #16. Closing this as a duplicate for now.