panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

502 Gateway Error Again

Open amirandola opened this issue 4 years ago • 1 comments

As happened 1 month ago, error 502 occurs. But now App regularly work, so I think it's not a server down problem

Error setting up entry for panasonic_cc Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/panasonic_cc/init.py", line 79, in async_setup_entry devices = await hass.async_add_executor_job(api.get_devices) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 172, in get_devices self.login() File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 103, in login self._get_groups() File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 154, in _get_groups raise ResponseError(response.status_code, response.text) pcomfortcloud.session.ResponseError: Invalid response, status code: 502 - Data:

502 Bad Gateway

502 Bad Gateway

amirandola avatar Oct 13 '21 19:10 amirandola

The 502 response comes from the Panasonic servers. Well technically it comes from the loadbalancer in front of their server, not being able to contact the "real" server. The reason the app might still work is that they have 2 front facing loadbalancers, and it depends on what IP you get from the DNS reply...

sockless-coding avatar Oct 21 '21 17:10 sockless-coding