Comments (7)
For more context, I checked logs and I'm also getting an error from within HA.
Logger: aiohttp.server
Source: helpers/config_entry_oauth2_flow.py:205
First occurred: 3:51:16 PM (1 occurrences)
Last logged: 3:51:16 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 171, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 96, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 303, in async_step_creation
token = await self.flow_impl.async_resolve_external_data(self.external_data)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 169, in async_resolve_external_data
return await self._token_request(
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 205, in _token_request
resp.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1005, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://zoom.us/oauth/token')
from ha-zoom-automation.
I switched companies and no longer use Zoom. As such I have limited capacity to fix bugs. I will add a note to the README but would welcome contributions to keep this integration working.
from ha-zoom-automation.
It seems the issue stems from Zoom requiring webhook events to be verified now. https://marketplace.zoom.us/docs/api-reference/webhook-reference/#verify-webhook-events They are removing the Verification token and using a Secret Token now. I was able to connect the integration by passing in the Secret Token instead but it seems the validation process wanted on the Features screen in the Zoom dev area needs what is talked about in that URL. My logs show this (line breaks added for readability):
Received unauthorized request:
{"payload":{
"plainToken":"<redacted manually>"},
"event_ts":1670946927462,
"event":"endpoint.url_validation"
} (Headers:
<CIMultiDictProxy('x-zm-signature': 'v0=cdb51105c40b072d7f53eaf01771ade2cbbc10b697483bf20ca5e92c3851b871',
'Authorization': '<redacted manually>',
'x-zm-request-timestamp': '1670946927',
'Content-Type': 'application/json; charset=utf-8',
'Content-Length': '110',
'Host': '<redacted manually>.ui.nabu.casa',
'Connection': 'Keep-Alive',
'User-Agent': 'Zoom Marketplace/1.0a')>)
from ha-zoom-automation.
For what it's worth @bfenty - I got the same error but was still able to complete the setup and have connected it to HA successfully.
from ha-zoom-automation.
For what it's worth @bfenty - I got the same error but was still able to complete the setup and have connected it to HA successfully.
Thanks for the reply. It actually did start working for a bit then it has quit again.
from ha-zoom-automation.
@bfenty Did you try validating the URL after the integration was setup and working in Home Assistant? That seemed to work for me, too.
from ha-zoom-automation.
I think this issue is related to the challenge-response checks from zoom. There is an initial validation and then revalidation.
https://developers.zoom.us/docs/api/rest/webhook-reference/#validate-your-webhook-endpoint
Having the same issues as described above. It works for a bit, when the revalidation happens, there is nothing to handle it so zoom just stops sending updates.
from ha-zoom-automation.
Related Issues (20)
- No issue - a praise! HOT 1
- Can't find Zoom in Main integrations UI HOT 2
- Error after upgrading to 0.8.0 HOT 1
- Worked but doesn't now HOT 14
- homeassistant.const.HTTP_* removed HOT 2
- Multiple Account Monitoring Not Working in v0.8.1 HOT 8
- not getting status HOT 16
- Missing code or state parameter HOT 22
- Mic status as sensor HOT 1
- Home Assistant Cloud URL used as Redirect URL for OAuth instead of user's configured external URL HOT 3
- Receiving events late/out of order HOT 9
- Unable to Install Integration HOT 3
- Doesn't work with Zoom PWA
- push notification for chat message
- Error setting up entry Zoom for binary_sensor
- Integration is using deprecated `DEVICE_CLASS_*` constants
- A required parameter (state) was missing HOT 1
- DOCS: Step 14 Scopes for chat:read has moved
- Entity/Sensor becomes unavailable after 30 seconds HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-zoom-automation.