Skip to content

Wink OAuth gives error #13036

@ptarjan

Description

@ptarjan

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.65.1

Python release (python3 --version):
Python 3.6.3

Component/platform:
Ubuntu 17.10

Description of problem:
When I visit http://192.168.1.205:8123/auth/wink/callback?code=7713iZO8EwEH8AbVnKgQ&state= I see this

500 Internal Server Error
Server got itself in trouble

Expected:
No error

Problem-relevant configuration.yaml entries and steps to reproduce:

  1. Install fresh install following https://home-assistant.io/docs/installation/raspberry-pi/
  2. Try to authorize wink

Traceback (if applicable):

Mar 09 21:52:41 ubuntu hass[13318]: INFO:homeassistant.components.http.view:Serving /auth/wink/callback to 192.168.1.100 (auth: True)
Mar 09 21:52:41 ubuntu hass[13318]: ERROR:aiohttp.server:Error handling request
Mar 09 21:52:41 ubuntu hass[13318]: Traceback (most recent call last):
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
Mar 09 21:52:41 ubuntu hass[13318]:     resp = await self._request_handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_app.py", line 310, in _handle
Mar 09 21:52:41 ubuntu hass[13318]:     resp = await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
Mar 09 21:52:41 ubuntu hass[13318]:     return await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
Mar 09 21:52:41 ubuntu hass[13318]:     return await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
Mar 09 21:52:41 ubuntu hass[13318]:     return await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
Mar 09 21:52:41 ubuntu hass[13318]:     return await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 28, in auth_middleware
Mar 09 21:52:41 ubuntu hass[13318]:     return await handler(request)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 97, in handle
Mar 09 21:52:41 ubuntu hass[13318]:     result = handler(request, **request.match_info)
Mar 09 21:52:41 ubuntu hass[13318]:   File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/wink/__init__.py", line 557, in get
Mar 09 21:52:41 ubuntu hass[13318]:     data = request.GET
Mar 09 21:52:41 ubuntu hass[13318]: AttributeError: 'Request' object has no attribute 'GET'

Additional info:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions