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
Invalid response, status code: 400 #78
Comments
Same here, tried to override the header version with 19.1, 19.2, 20 and it didn't help |
Same here. With "X-APP-VERSION: 1.17.0" the response is: {"code":"4106", "message": "New version app has been published"} and with "X-APP-VERSION: 1.18.0" {"code":"4000","message":"Missing required header parameter or bad request for header"}. Thus, this time they must have changed the required headers and just finding a new version number won't work (i.e. 1.18.0 is probably still the right one). |
Also looking for a solution :| I'm getting a Edit: After some more fiddling, I now get a null reply. And this is a curl log:
|
Looks like panasonic broke the login call. Strangely it still works in their app without any update needed |
The REST call needs some additional headers: |
I had to accept a new confidentiality policy on the iPhone application. But that does not solve the problem. I still have the same error:
But thanks to @marc2016 it now works for me with this patch: diff --git a/pcomfortcloud/session.py b/pcomfortcloud/session.py
index bf9f6a5..cb15ec0 100644
--- a/pcomfortcloud/session.py
+++ b/pcomfortcloud/session.py
@@ -110,6 +110,9 @@ class Session(object):
"X-APP-TYPE": "1",
"X-APP-VERSION": "1.19.0",
"X-User-Authorization": self._vid,
+ "X-APP-TIMESTAMP": "1",
+ "X-APP-NAME": "Comfort Cloud",
+ "X-CFC-API-KEY": "Comfort Cloud",
"User-Agent": "G-RAC",
"Accept": "application/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8" |
Awesome, that fixed it for me too. How do you guys find that out? That is just really cool. |
The Panasonic cloud was down for several hours today (even their app was not working) and now that it is back up I am getting the following error when trying to connect. Presumably there has been some kind of upgrade/protocol change
The text was updated successfully, but these errors were encountered: