Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
127 stars 25 forks source link

API Call failed. Status Code: 404 #142

Closed dusten closed 7 months ago

dusten commented 7 months ago

Describe the bug Looks like there's an issue with an API endpoint or parsing return data.

I am passing the vin as a part of the config.

To Reproduce:
This seems to have started after a recent update that I applied on Nov. 24th 2023.

Version info: Current version: 1.8.20

Logs:

Nov 30 10:28:06 volvo2mqtt [106] - ERROR: API Call failed. Status Code: 404. Error: {
  "error" : {
    "message" : "NOT_FOUND",
    "description" : "Does not belong to allowed markets"
  }
}
Nov 30 10:28:06 volvo2mqtt [106] - INFO: Success! API Backend status is supported by your vehicle.
Traceback (most recent call last):
  File "/volvoAAOS2mqtt/main.py", line 16, in <module>
    update_loop()
  File "/volvoAAOS2mqtt/mqtt.py", line 215, in update_loop
    create_ha_devices()
  File "/volvoAAOS2mqtt/mqtt.py", line 326, in create_ha_devices
    device = volvo.get_vehicle_details(vin)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volvoAAOS2mqtt/volvo.py", line 235, in get_vehicle_details
    raise Exception("Getting vehicle details failed. Status Code: " + str(response.status_code) +
Exception: Getting vehicle details failed. Status Code: 404. Error: {
  "error" : {
    "message" : "NOT_FOUND",
    "description" : "Does not belong to allowed markets"
  }
}
Dielee commented 7 months ago

This is a duplicate of #136. Volvo shut down their API for some countries.