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

Unknown error while updating weconnect_cupra #93

Open
MaHeymann opened this issue Nov 23, 2024 · 9 comments
Open

Unknown error while updating weconnect_cupra #93

MaHeymann opened this issue Nov 23, 2024 · 9 comments

Comments

@MaHeymann
Copy link

Hello. I have a CUPRA Formentor PHEV. In the HA integration I get the error listed.

`Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.cupra_we_connect
Quelle: custom_components/cupra_we_connect/init.py:52
Integration: Cupra WeConnect (Dokumentation, Probleme)
Erstmals aufgetreten: 22. November 2024 um 17:16:40 (21 Vorkommnisse)
Zuletzt protokolliert: 16:41:24

Unknown error while updating weconnect_cupra
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 802, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 552, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 468, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 463, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/fetch.py", line 47, in fetchData
statusResponse: requests.Response = self.session.get(url, allow_redirects=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 342, in request
return super(MyCupraSession, self).request(method, url, headers=headers, data=data, withhold_token=withhold_token, access_type=access_type, token=token,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/auth/openid_session.py", line 171, in request
self.refresh()
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 53, in refresh
self.refreshTokens(
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 299, in refreshTokens
tokenResponse = self.post(
^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 342, in request
return super(MyCupraSession, self).request(method, url, headers=headers, data=data, withhold_token=withhold_token, access_type=access_type, token=token,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/auth/openid_session.py", line 181, in request
return super(OpenIDSession, self).request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/cupra_we_connect/init.py", line 52, in async_update_data
await asyncio.wait_for(
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/weconnect_cupra.py", line 176, in update
self.__api.update(updateCapabilities=updateCapabilities, updatePictures=updatePictures, force=force, selective=selective)
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/api.py", line 39, in update
self.updateVehicles(updateCapabilities=updateCapabilities, updatePictures=updatePictures, force=force, selective=selective)
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/api.py", line 45, in updateVehicles
data = self.__fetcher.fetchData(url, force)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/fetch.py", line 79, in fetchData
raise RetrievalError from connectionError
weconnect_cupra.errors.RetrievalError`

During integration, some entities are shown as unknown.
The buttons for air conditioning are also not available.

Does anyone have the same problem? is there a solution for this?

HA:
Core 2024.10.3
Supervisor 2024.11.4
Operating System 13.2
Frontend 20241002.3
Cupra WE Connect Version: 0.8.4

@Boss-man
Copy link

This is for the Cupra Born only. So it will not work with a Formentor (The API is different)

@MaHeymann
Copy link
Author

Until a few weeks ago, the integration worked wonderfully with my Formentor. I also get some values.

@auaSkazzy
Copy link

The same for me. Are there any solutions yet?

@MaHeymann
Copy link
Author

Bei mir das Gleiche. Gibt es schon Lösungen?

Which Cupra do you drive? @auaSkazzy

@auaSkazzy
Copy link

Formentor 1.5 Plugin Hybrid

@chrisuki
Copy link

chrisuki commented Dec 2, 2024

Same here with Cupra Born. I heard on some users group that there was an issue with the app sync and features. Starting Air conditioning remotely from the app also doesn't work anymore since a few days now.

@Yorkie71
Copy link

Yorkie71 commented Dec 2, 2024

Same here with Cupra Born. I heard on some users group that there was an issue with the app sync and features. Starting Air conditioning remotely from the app also doesn't work anymore since a few days now.

This is not correct as I have used this feature via the native app and the HA integration recently and both have worked fine.

@daernsinstantfortress
Copy link
Owner

I've just started and stopped climate control on my own car, so definitely working for me

@chrisuki
Copy link

chrisuki commented Dec 2, 2024

It's may be regional issue. I'm in France, and the biggest Cupra Born User Group on FB is full of users stating the same issue since a few days.
P.S: a few minutes ago, I manage to start the climate remotely for the first time again since a 4-5 days. Things are moving there...HA Cupra WeConnect still not working though.
Will not update this thread anymore as it seems to be out of scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants