Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

No information from car #208

Closed
supermusen opened this issue Jul 4, 2024 · 10 comments
Closed

No information from car #208

supermusen opened this issue Jul 4, 2024 · 10 comments

Comments

@supermusen
Copy link

Describe the bug
I get no info from car

To Reproduce:

Just happend

Expected behavior:

work as it would

Screenshots:

If applicable, add screenshots to help explain your problem.

Version info:

HA-addon
Core
2024.6.3
Supervisor
2024.06.2
Operating System
12.3

Logs:

rc = self._packet_read()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "/volvoAAOS2mqtt/mqtt.py", line 160, in on_message
update_car_data(True)
File "/volvoAAOS2mqtt/mqtt.py", line 305, in update_car_data
state = volvo.get_backend_status()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/volvoAAOS2mqtt/volvo.py", line 435, in get_backend_status
response = session.get(API_BACKEND_STATUS, timeout=15)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/requests/adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='oip-dev-bff.euwest1.production.volvo.care', port=443): Max retries exceeded with url: /api/v1/backend-status (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)')))
Jul 04 09:23:35 volvo2mqtt [106] - INFO: Sending mqtt update...
Jul 04 09:23:37 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds.

@odh79
Copy link

odh79 commented Jul 5, 2024

I get the same error. And when trying to access the version1 of the api on the website i get this.

"Oops! Error 404
This version of the API has been removed as of April 30, 2024."

@kernalkue
Copy link

Same for me. I have to keep restarting the add-on maybe a couple of times a day

@Dielee
Copy link
Owner

Dielee commented Jul 5, 2024

This is an SSL error from the Volvo API..

@rubenv
Copy link

rubenv commented Jul 5, 2024

Interesting that the app does work. Are they using different endpoints or did they (yikes!) disable certificate validation?

@AndyHarvey99
Copy link

I patched get_backend_status() to always return "NO_WARNING" and everything still seems to work. The certificate on https://oip-dev-bff.euwest1.production.volvo.care expired on Wednesday 3 July 2024!

@Dielee
Copy link
Owner

Dielee commented Jul 6, 2024

So, I will not disable SSL verification for this addon, sorry..

@supermusen
Copy link
Author

So, I will not disable SSL verification for this addon, sorry..

So we just wait until Volvo fix certificate?

@sencercoltu
Copy link

Besides certificate expiration, it appears the URL https://oip-dev-bff.euwest1.production.volvo.care/api/v1/backend-status is also down. I'm receiving a "502 Bad Gateway" error for this URL even when SSL verification is disabled.

Dielee added a commit that referenced this issue Jul 8, 2024
@Dielee
Copy link
Owner

Dielee commented Jul 8, 2024

Please try v1.9.4 if its ready

@supermusen
Copy link
Author

Please try v1.9.4 if its ready

Works for me afte update. Nice, fast work!

@Dielee Dielee closed this as completed Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants