fordpass-scriptable icon indicating copy to clipboard operation
fordpass-scriptable copied to clipboard

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

Open WSchlesner opened this issue 3 years ago • 13 comments

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

WSchlesner avatar Oct 21 '22 18:10 WSchlesner

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

PraveshJ avatar Oct 22 '22 15:10 PraveshJ

I am having the same issue Here is the log

F1738E3B-8C18-4195-81E5-C61B509B94B1

walltztj avatar Oct 23 '22 08:10 walltztj

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

ReactiveD1 avatar Oct 26 '22 01:10 ReactiveD1

Same issue, waiting on response as well

cortz02 avatar Oct 26 '22 01:10 cortz02

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.

CJmusic avatar Oct 27 '22 13:10 CJmusic

After new update, same Error Logged.

Phone: iPhone 14 Pro Max

Adanlj4 avatar Oct 28 '22 08:10 Adanlj4

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

PraveshJ avatar Oct 31 '22 22:10 PraveshJ

Same error for me iPhone X

danielespy avatar Nov 03 '22 16:11 danielespy

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

aksten avatar Nov 04 '22 00:11 aksten

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

escoj17 avatar Nov 12 '22 07:11 escoj17

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

PraveshJ avatar Nov 14 '22 07:11 PraveshJ

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.

jolucha avatar Nov 26 '22 18:11 jolucha

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...

PraveshJ avatar Dec 13 '22 07:12 PraveshJ