Skip to content
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

Handle crashes from error code 503 #14

Closed
slvwolf opened this issue Sep 20, 2022 · 1 comment
Closed

Handle crashes from error code 503 #14

slvwolf opened this issue Sep 20, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@slvwolf
Copy link
Owner

slvwolf commented Sep 20, 2022

System will crash if encountering error code 503 for a long period of time

2022-09-20 01:01:50,360 - Service - WARNING - Sequence of errors detected. Halting requests for 10 minutes: ResponseError('Invalid response, status code: 503 - Data: {"message":"09/20/2022 01:00 ~ 09/20/2022 03:00 (UTC ± 00)","code":5300}')
2022-09-20 01:11:50,455 - Service - INFO - Resetting connection
2022-09-20 01:11:50,455 - Service - INFO - Connecting to Panasonic Comfort Cloud..
2022-09-20 01:11:52,949 - Service - INFO - Shutting down
Traceback (most recent call last):
  File "/app/run.py", line 4, in <module>
    __main__.main()
  File "/app/pcfmqtt/__main__.py", line 42, in main
    s.start()
  File "/app/pcfmqtt/service.py", line 79, in start
    self.connect_to_cc()
  File "/app/pcfmqtt/service.py", line 45, in connect_to_cc
    self._session.login()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 503 - Data: {"message":"09/20/2022 01:00 ~ 09/20/2022 03:00 (UTC ± 00)","code":5300}
@slvwolf slvwolf added the bug Something isn't working label Sep 20, 2022
@slvwolf
Copy link
Owner Author

slvwolf commented Feb 11, 2023

Resolved with v0.4.4

@slvwolf slvwolf closed this as completed Feb 11, 2023
@slvwolf slvwolf self-assigned this Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant