Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a suitable TLS CA certificate bundle #164

Open
Lemmik112 opened this issue May 3, 2023 · 0 comments
Open

Could not find a suitable TLS CA certificate bundle #164

Lemmik112 opened this issue May 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Lemmik112
Copy link

Hi Guys,

since the update to v0.25 I get the following error:

image

This error originated from a custom integration.

Logger: custom_components.foxess.sensor
Source: helpers/httpx_client.py:66
Integration: foxess (documentation, issues)
First occurred: 9:14:35 AM (1 occurrences)
Last logged: 9:14:35 AM

Unexpected error fetching FoxESS data: Could not find a suitable TLS CA certificate bundle, invalid path: user=XXX&password=XXX
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 181, in _async_update_data
return await self.update_method()
File "/config/custom_components/foxess/sensor.py", line 125, in async_update_data
token = await authAndgetToken(hass, username, hashedPassword)
File "/config/custom_components/foxess/sensor.py", line 245, in authAndgetToken
await restAuth.async_update()
File "/usr/src/homeassistant/homeassistant/components/rest/data.py", line 54, in async_update
self._async_client = get_async_client(
File "/usr/src/homeassistant/homeassistant/helpers/httpx_client.py", line 36, in get_async_client
client = hass.data[key] = create_async_httpx_client(hass, verify_ssl)
File "/usr/src/homeassistant/homeassistant/helpers/httpx_client.py", line 66, in create_async_httpx_client
client = HassHttpXAsyncClient(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1400, in init
self._transport = self._init_transport(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1448, in _init_transport
return AsyncHTTPTransport(
File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 261, in init
ssl_context = create_ssl_context(verify=verify, cert=cert, trust_env=trust_env)
File "/usr/local/lib/python3.10/site-packages/httpx/_config.py", line 51, in create_ssl_context
return SSLConfig(
File "/usr/local/lib/python3.10/site-packages/httpx/_config.py", line 75, in init
self.ssl_context = self.load_ssl_context()
File "/usr/local/lib/python3.10/site-packages/httpx/_config.py", line 87, in load_ssl_context
return self.load_ssl_context_verify()
File "/usr/local/lib/python3.10/site-packages/httpx/_config.py", line 119, in load_ssl_context_verify
raise IOError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: user=XXX&password=XXX

Home Assistant 2023.1.5
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230110.0 - latest

@Lemmik112 Lemmik112 added the bug Something isn't working label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant