ianjwhite99 / connected-car-python-sdk

Open-source Python SDK for Ford vehicles connected with Sync Connect (Ford Pass)
MIT License
73 stars 12 forks source link

502 Gateway error #59

Closed Krisp1k closed 2 years ago

Krisp1k commented 2 years ago

Python script throws a 502 Gateway error upon reaching any line that's using the access key (pic 1). I tried using every possible combination of the refreshToken and access variable with refresh_token or access_token in dict, but nothing worked. I even tried some client-side fixes like flushing DNS, but nothing. Here's the code (pic 2)

In this example the code is working fine until reaching the "vehicles" variable.

In theory it could be that the Ford changed their api endpoint, but that's unsure. Yesterday the code was working fine but today.

Note : even the file in examples folder in this repo doesn't work, same error

pic 1 -error pic 2 - code

lostbrother commented 2 years ago

I am also getting the same error. I had thought I was doing something wrong, but I also noticed https://github.com/clarkd/fordpass-python was giving me errors.

ianjwhite99 commented 2 years ago

Hi guys, sorry I've been on vacation and am just now getting around to this. It looks like Ford changed their API endpoint. I'll work on trying to get a fix for this pushed later today!