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

WebRTC dont work with core-2021.12.0b0 #182

Closed
Kenneth198 opened this issue Dec 9, 2021 · 12 comments
Closed

WebRTC dont work with core-2021.12.0b0 #182

Kenneth198 opened this issue Dec 9, 2021 · 12 comments
Labels
duplicate This issue or pull request already exists

Comments

@Kenneth198
Copy link

Homeassistant core-2021.12.0b4. WEbRTC not load.

@zvldz
Copy link

zvldz commented Dec 9, 2021

Very informative ))

@aeros2
Copy link

aeros2 commented Dec 9, 2021

I have such a problem. HA Supervisor 2021.11.5 I install the master version via HACS.

2021-12-09 14:33:02 ERROR (MainThread) [homeassistant.setup] 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 82, in async_setup await utils.init_resource(hass, url_path, str(version)) File "/config/custom_components/webrtc/utils.py", line 93, in init_resource if not item['url'].startswith(url): KeyError: 'url'

@zvldz
Copy link

zvldz commented Dec 9, 2021

I have such a problem. HA Supervisor 2021.11.5 I install the master version via HACS.

I just updated webrtc to the master version on HA 2021.11.5, I have no such errors ((

Try to reinstall the component

@aeros2
Copy link

aeros2 commented Dec 9, 2021

У меня такая проблема. HA Supervisor 2021.11.5 Устанавливаю мастер-версию через HACS.

Я только что обновил webrtc до мастер-версии на HA 2021.11.5, таких ошибок у меня нет ((

Попробуйте переустановить компонент

I tried reinstalling the master version many times. Manually is also a problem.

@zvldz
Copy link

zvldz commented Dec 9, 2021

I tried reinstalling the master version many times. Manually is also a problem.

Did it work for you earlier or is this the first attempt?

@aeros2
Copy link

aeros2 commented Dec 9, 2021

Я много раз пытался переустановить основную версию. Вручную - тоже проблема.

У вас это сработало раньше или это первая попытка?

the first time there was an error 2-3 days ago, it was not there before.

@aeros2
Copy link

aeros2 commented Dec 9, 2021

`Success!
A WebRTC Camera configuration record has been created

Integration failed to load, try restarting Home Assistant.`

@Arquiteto
Copy link

I can confirm there is an error in new version. I am on 2021.12.0b5 and have an error as follows:

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

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

@jine
Copy link

jine commented Dec 10, 2021

I can confirm there is an error in new version. I am on 2021.12.0b5 and have an error as follows:

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

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

https://github.com/AlexxIT/WebRTC/pull/177/files#diff-268266fb86d71bd71ed88a54850bd9ff45a46f014acb42741ed28173a817cb8eR74

@dale3h
Copy link

dale3h commented Dec 10, 2021

I can confirm there is an error in new version. I am on 2021.12.0b5 and have an error as follows:

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

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

https://github.com/AlexxIT/WebRTC/pull/177/files#diff-268266fb86d71bd71ed88a54850bd9ff45a46f014acb42741ed28173a817cb8eR74

Thank you for linking this. Between this and blakeblackshear/frigate-hass-integration#181 I was able to get Frigate and WebRTC back up and running on core 2021.12.0b5.

@chises
Copy link

chises commented Dec 11, 2021

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Dec 11, 2021
@AlexxIT
Copy link
Owner

AlexxIT commented Dec 11, 2021

Duplicate #156 and already fixed in master version

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

8 participants