You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Describe the bug
I don't appear to be getting a sufficient response as part of the .get_user_access_token() call.
Traceback (most recent call last):
File "/sandpit/ford/test.py", line 4, in<module>
access = client.get_user_access_token('<myusername>', '<mypw>') # Fetch client access token
File "/sandpit/ford/venv/lib/python3.9/site-packages/connectedcar/connectedcar.py", line 65, in get_user_access_token
authURL = self.web_session(pkce_code)
File "/sandpit/ford/venv/lib/python3.9/site-packages/connectedcar/connectedcar.py", line 120, in web_session
authURL = re.findall('data-ibm-login-url="(.*)"\s', response.text)[0]
IndexError: list index out of range
I have also looked at what I'm getting in response.text and it appears to be a "problem" webpage... I suspect this is may be due to the fact that I'm in Australia. I've also confirmed both on the Ford Australia website and on the FordPass iOS app that my account isn't locked or anything like that.
To Reproduce - This is the script.
importconnectedcarclient=connectedcar.AuthClient('9fb503e0-715b-47e8-adfd-ad4b7770f73b', None, None, None, 'AU')
access=client.get_user_access_token('<myusername>', '<mypw>') # Fetch client access tokenuser=connectedcar.User(access['access_token'], 'AU') # New User Objectvehicles=user.vehicles() # Fetch list of user vehiclesforuserVehicleinvehicles: # For each user vehiclevehicle=connectedcar.Vehicle(
userVehicle['vin'], access['access_token']) # Create vehicle objectprint(vehicle.details()) # Print vehicle details in json format
Expected behavior
Successfully get an access token!
Describe the bug
I don't appear to be getting a sufficient response as part of the .get_user_access_token() call.
I have also looked at what I'm getting in response.text and it appears to be a "problem" webpage... I suspect this is may be due to the fact that I'm in Australia. I've also confirmed both on the Ford Australia website and on the FordPass iOS app that my account isn't locked or anything like that.
To Reproduce - This is the script.
Expected behavior
Successfully get an access token!
Desktop: