StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
616 stars 111 forks source link

[BUG] 500 Internal Server Error Server got itself in trouble #707

Open martig12 opened 1 year ago

martig12 commented 1 year ago

Environment

Describe the bug

Steps to Reproduce

Expected behavior

Screenshots

Traceback/Error logs

Additional context

D-Bullock commented 1 year ago

I'm also having this issue I beleive the stacktrace is

Logger: aiohttp.server Source: config_entries.py:233 First occurred: 7:02:30 PM (1 occurrences) Last logged: 7:02:30 PM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/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 100, 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 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in get return await super().get(request, flow_id) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 96, in get result = await self._flow_mgr.async_configure(flow_id) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 400, in _async_handle_step result = await self.async_finish_flow(flow, result.copy()) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 759, in async_finish_flow entry = ConfigEntry( File "/usr/src/homeassistant/homeassistant/config_entries.py", line 233, in init self.data = MappingProxyType(data) TypeError: mappingproxy() argument must be a mapping, not NoneType

RainOrigami commented 1 year ago

Related / Duplicate: https://github.com/StyraHem/ShellyForHASS/issues/719

D-Bullock commented 1 year ago

Related / duplicate #699 - I posted a workaround in that task

DennisM84 commented 1 year ago

In a fresh install i become the same error. I set "shelly:" in configuration.xml and reload. Then i can covert from file to database configuration and remove "shelly:" from configuration.xml and reload again. Now it works.