tonesto7 / fordpass-scriptable

FordPass Widget for Scriptable
GNU General Public License v3.0
166 stars 27 forks source link

prepWidget() Error: Error: requestAccessToken Request Access Token 2: Unhandled Error Code | Expected value of type string but got value of type number. #126

Open WSchlesner opened 1 year ago

WSchlesner commented 1 year ago

New to this script/app but I have been getting this error: prepWidget() Error: Error: requestAccessToken Request Access Token 2: Unhandled Error Code | Expected value of type string but got value of type number.

I’ve uninstalled Scriptable & FordPass logging back in and still received the same errors. Any ideas on a fix for this issue? Seems like it might be happening to a few others as well.

184D234A-F3F7-4DC9-8E5A-5EF5A9719935 49F8CD7B-5F1C-40E4-A7D5-6CFF8392F183

PraveshJ commented 1 year ago

Mine stopped working also, my log:

2022-10-22 17:02:19: All (9) Required Modules Found! 2022-10-22 17:02:19: --------------------------- 2022-10-22 17:02:19: Widget RUN() 2022-10-22 17:02:19: Required Prefs Missing: fpToken 2022-10-22 17:02:19: Script Version: 2022.10.15.1 2022-10-22 17:02:19: Update Available: false 2022-10-22 17:02:19: Latest Version: 2022.10.15.1 2022-10-22 17:02:20: (Required Prefs Menu) Done was pressed 2022-10-22 17:02:20: (prepWidget) Prefs Menu Prompt Result: true 2022-10-22 17:02:20: No Token found... Forcing Token Fetch... 2022-10-22 17:02:20: Fetching Token... 2022-10-22 17:02:21: initializeWebSession status: 302 2022-10-22 17:02:21: Web Session Initialized... 2022-10-22 17:02:22: attemptLogin status: 200 2022-10-22 17:02:22: prepWidget() Error: Error: Attempt Login: Unhandled Error Code

walltztj commented 1 year ago

I am having the same issue Here is the log

F1738E3B-8C18-4195-81E5-C61B509B94B1

ReactiveD1 commented 1 year ago

I am having the same issue and have posted on discord but no response

cortz02 commented 1 year ago

Same issue, waiting on response as well

CJmusic commented 1 year ago

Wanted to say I’m experiencing the same issue and hoping for a fix. This is also a duplicate issue of #123, although this one’s title is more descriptive.

Adanlj4 commented 1 year ago

After new update, same Error Logged.

Phone: iPhone 14 Pro Max

PraveshJ commented 1 year ago

Any updates? Is there any way I/we can help?

danielespy commented 1 year ago

Same error for me iPhone X

aksten commented 1 year ago

Has he abandoned this widget? Here's the error i'm getting. Strange i was getting the error listed above on my phone, but i ran it on my ipad and it was working fine, deleted off the phone to reinstall which of course deleted off ipad too, now won't work on either and i get a different error. I'm guessing the CheckAuth Result: undefined is the problem???

2022-11-03 19:02:56: All (9) Required Modules Found! 2022-11-03 19:02:56: --------------------------- 2022-11-03 19:02:56: Widget RUN() 2022-11-03 19:02:56: reqOk: true 2022-11-03 19:02:56: (prepWidget) Checking for token... 2022-11-03 19:02:56: (prepWidget) CheckAuth Result: undefined 2022-11-03 19:02:56: (prepWidget) Checking User Prefs | Force: (false) 2022-11-03 19:02:56: (prepWidget) User Prefs Result: true 2022-11-03 19:02:56: (prepWidget) Fetching Vehicle Data... 2022-11-03 19:02:56: (prepWidget) Fetching Vehicle Data | Local: (true) 2022-11-03 19:02:56: fetchVehicleData(local) | Source: prepWidget 2022-11-03 19:02:56: fetchVehicleData(local) | Source: createMainPage 2022-11-03 19:02:56: createMainPage() Error: TypeError: undefined is not an object (evaluating 'vData.info.vehicleType') 2022-11-03 19:02:58: Script Version: 2022.10.15.1 2022-11-03 19:02:58: Update Available: false 2022-11-03 19:02:58: Latest Version: 2022.10.15.1

escoj17 commented 1 year ago

I’m also having the same issue. Any solutions yet?

PraveshJ commented 1 year ago

Might have to do something with the new API... Just updated Scriptable to 1.7.2 and still no working widget.

jolucha commented 1 year ago

From looking at the logs, it looks like the API endpoint (auth token request) is erroring and returning a 302 error, not the auth string it expects.

PraveshJ commented 1 year ago

I'm completely locked out of my Ford account now. Error CSIAH0320E when I try to log on. Password reset does not help. Have to check with Ford Customer Support...