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

Unknown error occurred #1

Closed
Errurion opened this issue Nov 13, 2020 · 2 comments
Closed

Unknown error occurred #1

Errurion opened this issue Nov 13, 2020 · 2 comments

Comments

@Errurion
Copy link

Logger: aiohttp.server
Source: custom_components/ledfxrm/config_flow.py:73
First occurred: 2:10:55 (45 occurrences)
Last logged: 13:51:54

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/ledfxrm/config_flow.py", line 37, in async_step_user
name, version = await self.get_rest_status(user_input[CONF_HOST], user_input[CONF_PORT])
File "/config/custom_components/ledfxrm/config_flow.py", line 73, in get_rest_status
rest_info = await resp.json()
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1026, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('http://localhost:5333/api/info')

@YeonV
Copy link
Owner

YeonV commented Nov 13, 2020

Is http://localhost:5333/api/info the correct URL, where your LedFX-Server is running?
Is it on the same machine as HomeAssistant?
Is your ledfx config yaml maybe defining host to "127.0.0.1" ?
If so, change it to your IP or maybe 0.0.0.0 will also work

@Errurion
Copy link
Author

ok my fault...
My ledfx version was too old😅
I installed dev version 8.4 and now it works

YeonV pushed a commit that referenced this issue Jan 26, 2021
Merge upstream into origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants