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

vehicle.capability() returning error #55

Closed
BillyCroan opened this issue May 24, 2022 · 1 comment
Closed

vehicle.capability() returning error #55

BillyCroan opened this issue May 24, 2022 · 1 comment

Comments

@BillyCroan
Copy link

When calling currentVehicle.capability(), I get a python traceback. I suspect ford discontinued the URI that was providing capability information. What info did it used to have?

To Reproduce
print( currentVehicle.capability() )

Traceback (most recent call last):
File "/home/bcroan/.local/lib/python3.6/site-packages/connectedcar/requester.py", line 35, in call
raise E.ResourceNotFoundException(response)
File "/home/bcroan/.local/lib/python3.6/site-packages/connectedcar/exceptions.py", line 9, in init
json = response.json()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)

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

Traceback (most recent call last):
File "/home/bcroan/bin/LogFusionData.py", line 30, in
print( currentVehicle.capability() )
File "/home/bcroan/.local/lib/python3.6/site-packages/connectedcar/vehicle.py", line 137, in capability
const.USER_URL, 'capability/v1/vehicles/' + self.vehicle_id)
File "/home/bcroan/.local/lib/python3.6/site-packages/connectedcar/api.py", line 59, in get
return requester.call('GET', url, headers=headers)
File "/home/bcroan/.local/lib/python3.6/site-packages/connectedcar/requester.py", line 49, in call
raise E.SyncException("Unexpected error") from e
connectedcar.exceptions.SyncException: Unexpected error

Expected behavior
list capabilities of vehicle

Desktop (please complete the following information):
Fedora 36, Python 3

I an able to enumerate vin numbers on the account and door lock status, so authentication is working properly.

@ianjwhite99
Copy link
Owner

Fixed in v1.3.7

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

2 participants