Skip to content

403 Forbidden #64

@mdickert

Description

@mdickert

Hi,
I use the script in a Linux shell. Since today I get the following error code:

Traceback (most recent call last):
  File "/home/iobroker/Panasonic/python-panasonic-comfort-cloud/pcomfortcloud.py", line 5, in <module>
    __main__.main()
  File "/home/iobroker/Panasonic/python-panasonic-comfort-cloud/pcomfortcloud/__main__.py", line 202, in main
    session.login()
  File "/home/iobroker/Panasonic/python-panasonic-comfort-cloud/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/home/iobroker/Panasonic/python-panasonic-comfort-cloud/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
```
`
On Android I saw that the 1st request of the Panasonic App includes an "deviceId" could this the reason?

            "clientId": "DYkT1gzGpfG5l9XXXQ8li16K0DTHTXXX", 
            "language": "0", 
            "loginId": self._username, 
            "password": self._password
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions