question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I cannot configure the component after install

See original GitHub issue

Describe the bug

When I enter my Google account and application password I got an “Unknown error occured”

Version of the integration

If you are unsure about the version check the github release here.

1.4.3

## Logs

<!-- To enable debug logs, put the below snippet in your configuration.yaml file.

logger:
  default: debug
  logs:
    custom_components.google_home: debug
-->

<!-- Paste logs below here-->

```text
2021-05-31 13:48:16 WARNING (MainThread) [homeassistant.components.http.security_filter] Filtered a request with a potential harmful query string: /devices.inc.php?search=True&searchField=antani'+union+select+(select+concat(0x223e3c42523e5b70726f6a6563742d646973636f766572795d)+limit+0,1),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL+--+&searchColumn=n.id&searchOption=contains
2021-05-31 13:50:32 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 74, in ban_middleware
    return await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/config/config_entries.py", line 155, in post
    return await super().post(request, flow_id)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 199, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 257, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/mnt/dietpi_userdata/homeassistant/custom_components/google_home/config_flow.py", line 59, in async_step_user
    master_token = await self._test_credentials(client)
  File "/mnt/dietpi_userdata/homeassistant/custom_components/google_home/config_flow.py", line 92, in _test_credentials
    master_token = await client.async_get_master_token()
  File "/mnt/dietpi_userdata/homeassistant/custom_components/google_home/api.py", line 71, in async_get_master_token
    master_token = await self.hass.async_add_executor_job(_get_master_token)
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/mnt/dietpi_userdata/homeassistant/custom_components/google_home/api.py", line 69, in _get_master_token
    return self._client.get_master_token()
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.8/site-packages/glocaltokens/client.py", line 247, in get_master_token
    res = perform_master_login(
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.8/site-packages/gpsoauth/__init__.py", line 139, in perform_master_login
    return _perform_auth_request(data, proxy)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.8/site-packages/gpsoauth/__init__.py", line 80, in _perform_auth_request
    session.mount(AUTH_URL, AuthHTTPAdapter())
  File "/home/homeassistant/.pyenv/versions/3.8.10/lib/python3.8/site-packages/requests/adapters.py", line 129, in __init__
    self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.8/site-packages/gpsoauth/__init__.py", line 71, in init_poolmanager
    context.post_handshake_auth = True
AttributeError: attribute 'post_handshake_auth' of '_ssl._SSLContext' objects is not writable
![Knipsel](https://user-images.githubusercontent.com/16529684/120190296-b1079580-c218-11eb-8395-fd22463e2991.JPG)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
KapJIcommented, Jun 1, 2021

You have incompatible version of OpenSSL installed.

From https://docs.python.org/3/library/ssl.html#ssl.SSLContext.post_handshake_auth:

Note: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the property value is None and can’t be modified

0reactions
leikoiljacommented, Jun 7, 2021

Awesome, thanks @KapJI for some good insights regarding TLS support, good to know for further debugging

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows could not configure one or more system components ...
Windows could not configure one or more system components. To install windows, restart the computer and then restart the installation.".
Read more >
How to Fix “Windows Could Not Configure One Or More ...
Open an Explorer window. Navigate to C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys.
Read more >
[SOLVED] Windows could not configure one or more system ...
Fixes for Windows could not Configure One or More System Component · 1) On your keyboard, press the Windows logo key and R...
Read more >
Windows could not configure one or more system components.
In this video, We will see how to fix the error Windows could not configure one or more system components. To install windows,...
Read more >
Windows could not Configure One or More System Components
"Windows could not configure one or more system components. To install windows, restart the computer and then restart the installation."
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found