WebRTC: Error during setup of component (core-2021.12.0)

System Health

version core-2021.12.0.dev20211110
installation_type Home Assistant OS
dev true
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.70
arch x86_64
timezone Europe/Amsterdam
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4952
Installed Version 1.16.0
Stage running
Available Repositories 965
Installed Repositories 8
AccuWeather
can_reach_server ok
remaining_requests 28
Home Assistant Cloud
logged_in true
subscription_expiration November 22, 2021, 01:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-0.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.0.dev20211104
update_channel dev
supervisor_version supervisor-2021.11.dev0901
docker_version 20.10.8
disk_total 30.8 GB
disk_used 6.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (9.5.1), SSH & Web Terminal (9.0.1), Home Assistant Google Drive Backup (0.105.2), MariaDB (2.4.0), ESPHome (dev) (dev)
Lovelace
dashboards 1
resources 7
views 4
mode storage
This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: webrtc (documentation, issues)
First occurred: 08:37:12 (1 occurrences)
Last logged: 08:37:12

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 254, 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'

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 35 (5 by maintainers)

Most upvoted comments

I wonder when people will stop creating duplicates

error for webrtc with core-2021.12.0 problem solved and works fine when : do hacs re-download , then choose master version. thanks.

I wonder when people will stop creating duplicates

I would release a new version with the fix. In that way I’m sure people would stop creating duplicates 😃

in hacs re-download but then choose master version

If it teaches someone to respect other people’s work, I am ready to spend my time on closing such tasks.

Fixed in v2.2.0.

Hmm, I searched for ‘allow_cors’ in all issues and found the answer but not everyone is good at searching or looking in the pinned issue.

For you it would takes less keystrokes to push the release then closing new issues that pop every hour. Releases > Draft a new release > enter version / tag > Publish release

@htmltiger how much time does it take the user to skip the request to “search for an existing issue and not create duplicates”?

@htmltiger how much time does it take the user to skip the request to “search for an existing issue and not create duplicates”?

Thank you @AlexxIT for your time and this great component.

@manj9501 there’s v2.3.0 already, and it’s properly published: https://github.com/AlexxIT/WebRTC/releases/tag/v2.3.0

Is this not working still? I get an error in after the HACS install.

Success! Created configuration for WebRTC Camera.

The integration could not be loaded, try to restart Home Assistant.