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

KeyError: 'allow_cors' (github releases bug) #270

Closed
kyledong opened this issue Mar 9, 2022 · 8 comments
Closed

KeyError: 'allow_cors' (github releases bug) #270

kyledong opened this issue Mar 9, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@kyledong
Copy link

kyledong commented Mar 9, 2022

can't load WebRTC with latest homeAssistant 2022.3.2 , Error message blow ? any hlep ?thanks.
Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 12:12:42 (1 occurrences)
Last logged: 12:12:42

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'

@xrays72
Copy link

xrays72 commented Mar 9, 2022

Hi
Download https://github.com/AlexxIT/WebRTC/releases/tag/v2.2.0, extract archive and replace all files from folder custom_components/webrtc

@theaidem
Copy link

Or redownload master version from hacs

@andorardo
Copy link

I using master from HACS, and it seems to be working. What's the reason the 2.2.0 isn't showing up in HACS yet?

@AlexxIT AlexxIT added the bug Something isn't working label Mar 11, 2022
@AlexxIT AlexxIT mentioned this issue Mar 11, 2022
@AlexxIT AlexxIT changed the title can't load WebRTC with latest homeAssistant 2022.3.2 KeyError: 'allow_cors' (github releases bug) Mar 11, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 11, 2022

It's a github bug. Some repositories are missing the latest release.

This problem fixed in latest component release
https://github.com/AlexxIT/WebRTC/releases/tag/v2.2.0

But this release has disappeared from the github API.

I hope the next release will fix this situation. And hope to find time for it.

@Mark612
Copy link

Mark612 commented Mar 17, 2022

v2,2.0 works, most of the time. However the mobile app and sometimes the web interface fails to load webrtc. Restarting and refreshing the browser will usually solve it.

@marcoahp
Copy link

I can't install WebRTC v2.2.0 only v2.1.0. Master version don't help. I get 'allow_cors' error too.

@savikko
Copy link

savikko commented Mar 27, 2022

Latest version works great.

Problem is that latest version is not visible on releases on github page.

Just download current repo from github and then extract webrtc -folder to your custom_components directory and then proceed with installing the integration.

@Hobbit44
Copy link

You can create the release manually from the tag that exists. That should close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants