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

Invalid config - Can't start webrtc #282

Closed
webdados opened this issue Mar 28, 2022 · 15 comments
Closed

Invalid config - Can't start webrtc #282

webdados opened this issue Mar 28, 2022 · 15 comments
Labels
duplicate This issue or pull request already exists

Comments

@webdados
Copy link

webdados commented Mar 28, 2022

I'm getting this notification after installing WebRTC and restarting HA.

Invalid config
The following integrations and platforms could not be set up:

webrtc
Please check your config and logs.

The logs say this:
2022-03-28 14:52:24 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant (...) 2022-03-28 14:52:36 ERROR (MainThread) [homeassistant.setup] 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](route)

Any ideas?

Home Assistant 2022.3.7
Operating System Version 5.10.92-v8

@johnjoemorgan
Copy link

Getting the same issue after upgrading to the latest version

@Sarunas88
Copy link

where do you find this error message ? i am trying to start WebRTC for 2 days now without any succes, perhaps i got the same issue

@webdados
Copy link
Author

where do you find this error message ? i am trying to start WebRTC for 2 days now without any succes, perhaps i got the same issue

Configuration > Settings > Logs
Also:
Notifications

@moshiko2312
Copy link

me to Getting the same issue after upgrading to the latest version

@moshiko2312
Copy link

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 17:36:00 (1 occurrences)
Last logged: 17:36:00

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'

@fabiobrolo
Copy link

Try to remove the integration, install master version, restart HA and configure the integration back.

@Sarunas88
Copy link

#278 (comment)

please do like here, everything is working fine.

@jscherry
Copy link

Still not working after removing, restarting ha, then installing master version on 2022.4 beta? Can't load. With the newest regular version of webrtc will load but keep getting allow_cors?

@strasharo
Copy link

Removed everything and pulled from master, still hitting allow_cors.

@interbiznw
Copy link

getting this same error even after removing and installing master version.......any update????

@FirstRulez
Copy link

I've only just installed this integration, and am also seeing this error. Any suggestions?

2022-04-08 08:58:30 ERROR (MainThread) [homeassistant.setup] 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'](route) 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 have the same error, using

version | core-2022.4.1 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.9.9 os_name | Linux os_version | 5.10.108 arch | x86_64 timezone | Europe/Amsterdam
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4954
Installed Version 1.24.3
Stage running
Available Repositories 1083
Downloaded Repositories 3
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel stable
supervisor_version supervisor-2022.03.5
docker_version 20.10.9
disk_total 30.8 GB
disk_used 17.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), Node-RED (11.1.1), WireGuard (0.6.0), Grafana (7.5.2), InfluxDB (4.4.1), Let's Encrypt (4.12.0), NGINX Home Assistant SSL proxy (3.1.1), Mosquitto broker (6.0.1), Z-Wave JS (0.1.55), Terminal & SSH (9.3.0), Eufy Security Add-on (0.8.4), RTSP Simple Server Add-on (v0.17.6)
Dashboards
dashboards 1
resources 0
views 4
mode storage

Installed using WebRTC v2.1.0 HACS integration

@webdados
Copy link
Author

webdados commented Apr 9, 2022

Is this project abandoned? I’m willing to contribute with a money compensation to have this problem fixed.

@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