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

New discovered device: Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble #652

Closed
fvant opened this issue Feb 18, 2022 · 11 comments
Assignees
Labels
Milestone

Comments

@fvant
Copy link

fvant commented Feb 18, 2022

New device (my only shelly) was auto discovered, clicking Configure gives this error:

Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

HAOS 7.4
Core 2022.2.8

@robr92
Copy link

robr92 commented Feb 21, 2022

same by me

@JohanLander
Copy link

yes i have this too ...

@PhillipRt
Copy link

Seems to be related to this error message for me:

ERROR: Cannot install paho-mqtt==1.5.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts 

@thundergreen
Copy link

same as: #655

@Ascariota
Copy link

SAme issue

@PhillipRt
Copy link

Fixed by #658 for me

@hakana
Copy link
Contributor

hakana commented Mar 3, 2022

Fixed in release 0.3.4

@hakana hakana self-assigned this Mar 3, 2022
@hakana hakana added the fixed label Mar 3, 2022
@hakana hakana added this to the 0.3.4 milestone Mar 3, 2022
@fvant
Copy link
Author

fvant commented Mar 4, 2022 via email

@tsparber
Copy link

I am new to ShellyForHASS and thus tried to install it the first time on Home Assistant 2022.3.5.
My devices are auto discovered, but cannot be set up as an error 500 Internal Server Error Server got itself in trouble is shown in the configuration screen.

ShellyForHASS v0.3.5 via HACS.

Error Log:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 97, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, 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 360, in _async_handle_step
    result = await self.async_finish_flow(flow, result.copy())
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 708, in async_finish_flow
    entry = ConfigEntry(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 220, in __init__
    self.data = MappingProxyType(data)
TypeError: mappingproxy() argument must be a mapping, not NoneType

@hakana
Copy link
Contributor

hakana commented Mar 18, 2022

Have you restarted HA after installation of ShellyForHass?

@tsparber
Copy link

Yes i did a restart of HA as suggested by HACS.

I did a another search regarding the stack trace and found the similar issues #496 and #562.

Manually adding a new instance of the integration works as suggested in #496 (comment)
Search for Shelly integration and create a new instance, after a restart the auto discovered instance is removed.

@hakana hakana closed this as completed Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants