Giter Site home page Giter Site logo

Comments (7)

bfenty avatar bfenty commented on June 3, 2024

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.

raman325 avatar raman325 commented on June 3, 2024

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.

genebean avatar genebean commented on June 3, 2024

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.

Normanras avatar Normanras commented on June 3, 2024

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.

bfenty avatar bfenty commented on June 3, 2024

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.

Normanras avatar Normanras commented on June 3, 2024

@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.

ChristopherJacob avatar ChristopherJacob commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.