Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Unexpected exception during first installation #130

Open
Next9999 opened this issue Apr 22, 2023 · 0 comments
Open

Unexpected exception during first installation #130

Next9999 opened this issue Apr 22, 2023 · 0 comments

Comments

@Next9999
Copy link

This error originated from a custom integration.

Logger: custom_components.fullykiosk.config_flow
Source: helpers/aiohttp_client.py:67
Integration: fullykiosk (documentation, issues)
First occurred: 7:08:07 AM (1 occurrences)
Last logged: 7:08:07 AM

Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 149, in get
data = await response.json()
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json
return await super().json(*args, loads=loads, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('http://192.168.1.84:8123/?cmd=deviceInfo&password=1Octobre2016&type=json')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/fullykiosk/config_flow.py", line 80, in async_step_user
info = await validate_input(self.hass, user_input)
File "/config/custom_components/fullykiosk/config_flow.py", line 50, in validate_input
deviceInfo = await fully.getDeviceInfo()
File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 30, in getDeviceInfo
result = await self.sendCommand("deviceInfo")
File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 22, in sendCommand
data = await self._rh.get(
File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 151, in get
data = await response.json(content_type="text/html")
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json
return await super().json(*args, loads=loads, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1120, in json
return loads(stripped.decode(encoding))
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant