bisand / node-red-contrib-panasonic-comfort-cloud

MIT License
5 stars 3 forks source link

Bad request error #19

Closed Sharppis1 closed 9 months ago

Sharppis1 commented 10 months ago

API response: {"code":"4000","message":"Missing required header parameter or bad request for header"} Nothing has changed in node-red flow configs. In other panasonic cc related repo someone wrote that panasonic made some changes into API but also they made rollback. Not sure if so, but apparently rollback wasn't success...

bisand commented 10 months ago

I see that Panasonic has upgraded the app. Have you tried to restart NodeRed? I will try to improve the logic that handles the versioning, but in the meantime a NodeRed restart might help.

Sharppis1 commented 10 months ago

Thank's for quick reply! Yes I have restarted node-red and I did also hardware reboot, just in case. API request seems to miss couple header settings. Different code language, but check https://github.com/lostfields/python-panasonic-comfort-cloud/commit/ceae7315d7c20ec457683b08b6e037404e4bbe10 after those changes python api works. I had earlier version of that python library just to play with it and it didn't work before I upgrade it with that change and it works now again.

hannuterasloihde commented 10 months ago

I'm facing the same issue. Also tested that the node implementation https://github.com/marc2016/panasonic-comfort-cloud-client has a working version, had to switch to that library temporarily to regain control of my heat pumps.

bisand commented 9 months ago

New version that addresses this issue is deployed. You might have to create a new credential in order to make it work.

bisand commented 9 months ago

Thanks to @mc02 for fixing this issue.

xgcssch commented 9 months ago

I had the same issue. Updated to 1.5.0

But now i get: {"code":"4100","message":"Token expires","httpCode":401,"statusCode":401,"statusMessage":"Unauthorized"}

I added a new credential, changed the password, but nothing helped.

Access via app is still possible.

Best regards Sönke

bisand commented 9 months ago

I can't reproduce what you are experiencing. Have you tried your credentials in the Panasonic app? Have you also tried to remove the config node and replace it with a new containing the correct credentials?

xgcssch commented 9 months ago

Recreating the config node did the job! Thanks for the hint! Sönke