tillsteinbach / WeConnect-python

Python API for the Volkswagen WeConnect Services
MIT License
111 stars 30 forks source link

Repeating log entries reporting 'failed downloading picture' for ID. Buzz #154

Open simeon-simsoft opened 12 months ago

simeon-simsoft commented 12 months ago

Using this component within Home Assistant the log is filling with messages relating to being unable to download pictures.

Logger: weconnect Source: /usr/local/lib/python3.11/site-packages/weconnect/elements/vehicle.py:458 First occurred: 9 October 2023 at 16:32:11 (442 occurrences) Last logged: 08:59:55

Failed downloading picture door_right_front with status code 403 will try again in next update Failed downloading picture window_right_front_overlay with status code 403 will try again in next update Failed downloading picture door_right_back_overlay with status code 403 will try again in next update Failed downloading picture window_left_back_overlay with status code 403 will try again in next update Failed downloading picture car_birdview with status code 403 will try again in next update

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/weconnect/weconnect.py", line 193, in update self.updateVehicles(updateCapabilities=updateCapabilities, updatePictures=updatePictures, force=force, selective=selective) File "/usr/local/lib/python3.11/site-packages/weconnect/weconnect.py", line 202, in updateVehicles data = self.fetchData(url, force) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/weconnect/weconnect.py", line 393, in fetchData raise RetrievalError(f'Could not fetch data. Status Code was: {statusResponse.status_code}') weconnect.errors.RetrievalError: Could not fetch data. Status Code was: 403

tillsteinbach commented 11 months ago

is this still the case, or was it a temporary problem?

simeon-simsoft commented 11 months ago

Hi, yes. still ongoing as of just now.. Are the list of pictures passed in from the server or do you hard code them per vehicle?

tillsteinbach commented 11 months ago

the list is coming from the server. What is strange is that it is a 403 error. Does it work in the app?

simeon-simsoft commented 11 months ago

hard to tell.. im not very used to the app.. new car.. I get a picture of the car, but its just one.. my wife has the car today so not sure if its dynamic if i were to open a door etc.

simeon-simsoft commented 11 months ago

im happy to share my app details if it makes it any easier to debug locally.

legantois commented 10 months ago

same here (ID.4 in garage charging and connected...)

Failed downloading picture door_right_front_overlay with status code 429 will try again in next update Failed downloading picture sunroof with status code 429 will try again in next update Failed downloading picture bonnet_overlay with status code 429 will try again in next update Failed downloading picture car_birdview with status code 429 will try again in next update Failed downloading picture door_right_front with status code 429 will try again in next update Failed downloading picture light_left with status code 429 will try again in next update Failed downloading picture light_right with status code 429 will try again in next update Failed downloading picture trunk_overlay with status code 429 will try again in next update Failed downloading picture window_left_front_overlay with status code 429 will try again in next update Failed downloading picture window_right_front_overlay with status code 429 will try again in next update

tillsteinbach commented 10 months ago

429 is a different error. It means too many requests.

legantois commented 10 months ago

Sorry for the bad report. these errors occured several times in one block (i checked and they did not occur in the last 12 h)

but looking on the log i see the following error occuring (but not in one block, one or two at a time every 2/3 hours)

Failed downloading picture window_left_back_overlay with status code 403 will try again in next update Failed downloading picture door_left_front_overlay with status code 403 will try again in next update Failed downloading picture window_left_front_overlay with status code 403 will try again in next update

DEVIDTR commented 10 months ago

I submitted a commit that should solve the issue with images.

https://github.com/tillsteinbach/WeConnect-python/pull/161