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

ERROR (MainThread) [homeassistant.setup] Error during setup of component webrtc #278

Closed
Asinke opened this issue Mar 19, 2022 · 6 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@Asinke
Copy link

Asinke commented Mar 19, 2022

I get below error when setting up webrtc.

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

Home Assistant 2022.3.5

@pjuhl2313
Copy link

I'm getting the same thing. Happened after I updated my HA last week.

@therealwave
Copy link

therealwave commented Mar 21, 2022

Edit:
Also found #270
Had to manually install 2.2.0 and it works

@mick1988
Copy link

Had the same issue. Followed the instructions here and it is now working for me:

#270 (comment)

@mohannaddubagh
Copy link

This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 11:43:25 PM (1 occurrences)
Last logged: 11:43:25 PM

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

@jopvanraaij
Copy link

I guess issue is a duplicate of #280, solved it, see my comment in #280

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Apr 10, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 10, 2022

#270 (comment)

@AlexxIT AlexxIT closed this as completed Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants