raman325 / ha-zoom-automation

Custom Home Assistant component for Zoom. Tracks when you are connected to a Zoom call by default but may allow you to track more.
MIT License
60 stars 15 forks source link

500 Internal Service Error #18

Open KTibow opened 4 years ago

KTibow commented 4 years ago

Version of the custom_component

v0.3

Configuration

GUI.

Describe the bug

When I add my client ID, secret, and verification token, and click on add, it says "500 internal service error: server got itself in trouble" once I accept the permissions.

Debug log


2020-08-29 07:56:58 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 388, in get
    await hass.config_entries.flow.async_configure(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 259, 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 145, in async_resolve_external_data
    return await self._token_request(
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 174, in _token_request
    resp.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 941, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='', url=URL('https://zoom.us/oauth/token')
raman325 commented 4 years ago

I just re-set up my integration using the UI and was able to complete it successfully. Make sure the callback URLs specified in the Zoom app are correct and then try again, could have just been an issue on the Zoom side.

KTibow commented 4 years ago

It was my fault, I forgot to add the developer name/email. Mind adding that to the docs?

reffr commented 3 years ago

I couldn't get this to work. Then I remembered when I first setup HA I activated Nabu Casa. Once I disabled Nabu Casa it worked great. Do I need Nabu Casa? If so, is there a way to make it work with zoom integration?

raman325 commented 3 years ago

hmm that shouldn't matter... did you get an exception? If so can you post it here