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

Cannot connect #36

Open
HenkKoopmans opened this issue May 17, 2024 · 35 comments
Open

Cannot connect #36

HenkKoopmans opened this issue May 17, 2024 · 35 comments

Comments

@HenkKoopmans
Copy link

Since yesterday evening no connection anymore.
Version 0.2.2
Domain de, com, ch same result

OS = Debian on Pi
Error Log (oldest entry at bottom):

ford.0
2024-05-17 11:59:35.410 error {"error":"invalid_request","error_description":"AADB2C90083: The request is missing required parameter: code.\r\nCorrelation ID: 5dfe1205-1952-445d-8573-a1cb2e4f498e\r\nTimestamp: 2024-05-17 09:59:35Z\r\n"}

ford.0
2024-05-17 11:59:35.410 error AxiosError: Request failed with status code 400

ford.0
2024-05-17 11:59:35.409 error Failed to get mid token

ford.0
2024-05-17 11:59:34.609 error "\n<TITLE>Access Denied</TITLE>\n\n

Access Denied

\n \nYou don't have permission to access "http://login.ford.de/4566605f-43a7-400a-946e-89cc9fdb0bd7/B2C_1A_SignInSignUp_de-DE/SelfAsserted?" on this server.

\nReference #18.17fe1202.1715939974.19fafe1d\n

https://errors.edgesuite.net/18.17fe1202.1715939974.19fafe1d

\n\n\n"

ford.0
2024-05-17 11:59:34.608 error AxiosError: Request failed with status code 403

ford.0
2024-05-17 11:59:34.606 error Failed to first Azure Step

ford.0
2024-05-17 11:59:32.760 info starting. Version 0.2.2 (non-npm: TA2k/ioBroker.ford) in /opt/iobroker/node_modules/iobroker.ford, node: v18.17.1, js-controller: 5.0.19

@mlapp
Copy link

mlapp commented May 17, 2024

Hier besteht das gleiche Problem. Tritt sowohl mit 0.20 als auch mit 0.22 auf.
Update:
Mit der com-Domain funktioniert es bei mir mit dem 0.22er Adapter wieder (teilweise).
Update:
Es funktioniert aber nicht richtig.
Hier die entsprechenden Logeinträge:

ford.0 2024-05-17 15:21:46.862 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:21:46.776190459Z"}
ford.0 2024-05-17 15:21:46.862 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:21:39.484 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:21:39.398605320Z"}
ford.0 2024-05-17 15:21:39.484 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:21:36.123 error {"code":401,"error":"unauthorized","message":"provided token was expired","timestamp":"2024-05-17T13:21:36.037180Z","referenceId":"767649ee4db1a343537a057a8f7ec852"}
ford.0 2024-05-17 15:21:36.123 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:21:36.123 error Failed command: status
ford.0 2024-05-17 15:21:35.379 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:21:35.293633542Z"}
ford.0 2024-05-17 15:21:35.378 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:21:10.492 error Start relogin in 1min
ford.0 2024-05-17 15:21:10.492 error {"message":"Invalid or Expired Token","timestamp":"2024-05-17T13:21:10.416546890Z","errorCode":"460"}
ford.0 2024-05-17 15:21:10.492 error AxiosError: Request failed with status code 400
ford.0 2024-05-17 15:21:10.492 error refresh token failed
ford.0 2024-05-17 15:20:39.486 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:20:39.400409560Z"}
ford.0 2024-05-17 15:20:39.486 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:19:39.474 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:19:39.388733692Z"}
ford.0 2024-05-17 15:19:39.474 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:18:39.489 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:18:39.403854477Z"}
ford.0 2024-05-17 15:18:39.489 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:17:39.499 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:17:39.412884856Z"}
ford.0 2024-05-17 15:17:39.498 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:16:39.491 error {"status":"ACC-16-6052","error":"unauthorized","message":"invalid token","timestamp":"2024-05-17T13:16:39.405599532Z"}
ford.0 2024-05-17 15:16:39.491 error AxiosError: Request failed with status code 401
ford.0 2024-05-17 15:14:40.033 error Error [ERR_FR_REDIRECTION_FAILURE]: Redirected request failed: Unsupported protocol fordapp:
ford.0 2024-05-17 15:14:40.033 error Failed to get login form
ford.0 2024-05-17 15:13:38.956 error Start relogin in 1min
ford.0 2024-05-17 15:13:38.956 error {"message":"Invalid or Expired Token","timestamp":"2024-05-17T13:13:38.880725415Z","errorCode":"460"}
ford.0 2024-05-17 15:13:38.956 error AxiosError: Request failed with status code 400
ford.0 2024-05-17 15:13:38.954 error refresh token failed

@HenkKoopmans
Copy link
Author

Ich habe es gerade probiert, bei mir funktioniert es auch nicht mit der com oder ch Domain. (0.22 Adapter)

@HenkKoopmans
Copy link
Author

Korrektur, com Domain funktioniert. !!

@mlapp
Copy link

mlapp commented May 17, 2024

Mit der com-Domain hat es bei mir einen Moment gedauert bis der Adapter wieder grün wurde.
Aber jetzt kommen auch wieder aktuelle Daten an.
Update:
Zumindest kurz.
Dann läuft er wieder auf Fehler. Siehe weiter oben.

@erwini
Copy link

erwini commented May 24, 2024

Wieder kein login möglich seit ~18h.

error: ford.0 (280553) Failed to first Azure Step
error: ford.0 (280553) AxiosError: Request failed with status code 403
error: ford.0 (280553) "Access Denied  You don't have permission to access http://login.ford.com/...
error: ford.0 (280553) Failed to get mid token
error: ford.0 (280553) AxiosError: Request failed with status code 400
error: ford.0 (280553) {"error":"invalid_request","error_description":"AADB2C99983: The request is missing required parameter: code.\r\nCorrelation ID: b3 ...

sieht aber ein wenig anders aus als oben. Gleiche Ursache?

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

bitte v1.0.1 nutzen

@erwini
Copy link

erwini commented May 24, 2024

gleiche Fehler mit v1.0.1 :-(

@HenkKoopmans
Copy link
Author

Ich konnte mich einloggen und habe nun ein Developer-Konto mit einem ID-Code.
Ich habe den Code im Adapter gespeichert, aber danach ist es nicht mehr klar.
Welche URL muss ich öffnen?

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

die in der ersten text box

@HenkKoopmans
Copy link
Author

Sorry welche erste Textbox? Meine Delopper Konto ID ist meine E-mail, dann habe ich eine Credential ID, und eine secret Hint.

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

Genau die eintragen. Speichern drücken. Seite Neuladen und dann die url die sichtbar ist besuchen. die letzte url mit localhost in die zweite box kopieren

@HenkKoopmans
Copy link
Author

Meine URL in der Adresszeile ist keine "Localhost" aber eine Lokale Netzwerk Adresse.

Den Adapter startet regelmässig, aber kriegt Fehlermeldung:
ford.0
2024-05-24 21:57:51.668 error {"error":"invalid_request","error_description":"AADB2C90083: The request is missing required parameter: code.\r\nCorrelation ID: 01d59f77-a263-4d13-8e05-bc63a18ab0fe\r\nTimestamp: 2024-05-24 19:57:51Z\r\n"}

ford.0
2024-05-24 21:57:51.668 error AxiosError: Request failed with status code 400

ford.0
2024-05-24 21:57:51.663 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

ford.0
2024-05-24 21:57:51.661 info terminating

ford.0
2024-05-24 21:57:51.659 info Got terminate signal TERMINATE_YOURSELF

ford.0
2024-05-24 21:57:51.631 error Failed to get token. Please restart the adapter and do a new login

ford.0
2024-05-24 21:57:50.119 info Found clientID start API Login

ford.0
2024-05-24 21:57:50.027 info starting. Version 1.0.1 (non-npm: TA2k/ioBroker.ford) in /opt/iobroker/node_modules/iobroker.ford, node: v18.17.1, js-controller: 5.0.19

ford.0
2024-05-24 21:57:43.662 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

ford.0
2024-05-24 21:57:43.660 info terminating

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

wie sieht die localhost url aus die du einkopiert hast

@HenkKoopmans
Copy link
Author

HenkKoopmans commented May 24, 2024

Ok I repeated the reload, now I got the following URL
https://fordconnect.cv.ford.com/common/login/?make=F&application_id=AFDC085B-377A-4351-B23E-5E1D35FB3700&response_type=code&state=123&redirect_uri=https%3A%2F%2Flocalhost%3A3000&scope=access&client_id=xxxxx@bluewin.ch I went to this address and get an error message:

Sorry, but we're having trouble signing you in.
We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, please try again.
Correlation ID: xxxxxxxxxxxxx875
Timestamp: 2024-05-24 20:06:32Z
AADB2C90018: The client id 'xxxx_bluewin.ch' specified in the request is not registered in tenant 'dah2vb2cprod.onmicrosoft.com'.

my E-mail was correct of course

@HenkKoopmans
Copy link
Author

I believe I have a problem with what is ID and what is the secret? Sorry for english, is for me easier then german. No problem when you answer in german

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

Du musst die erste url besuchen für eine client id und secret in 1.0.2 ist das besser sichtbar

@HenkKoopmans
Copy link
Author

OK I repeated the process. ClientID was the long code. Secret was only a 5 digit code.
I got a URL, steered to that URL logged in, and my MachE showed up. Then I was directed to a localhost URL. I copied this URL in the adapter. But still get the same error messages.

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

Wie sieht die localhost url aus

@HenkKoopmans
Copy link
Author

HenkKoopmans commented May 24, 2024

https://localhost:3000/?state=123&code=eyJraWQiOiI2c

I have removed the last xx digits.

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

was sagt der log

@HenkKoopmans
Copy link
Author

Zeit

Nachricht

ford.0
2024-05-24 22:33:12.886 info Found clientID start API Login

ford.0
2024-05-24 22:33:12.789 info starting. Version 1.0.2 (non-npm: TA2k/ioBroker.ford) in /opt/iobroker/node_modules/iobroker.ford, node: v18.17.1, js-controller: 5.0.19

ford.0
2024-05-24 22:33:06.411 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

ford.0
2024-05-24 22:33:06.409 info terminating

ford.0
2024-05-24 22:33:06.404 info Got terminate signal TERMINATE_YOURSELF

ford.0
2024-05-24 22:33:06.399 error {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1716582785, Grant issued time: 1716582155, Grant expiration time: 1716582455\r\nCorrelation ID: 5989e70e-4912-4f80-a35c-71e4c12b3290\r\nTimestamp: 2024-05-24 20:33:05Z\r\n"}

ford.0
2024-05-24 22:33:06.398 error AxiosError: Request failed with status code 400

ford.0
2024-05-24 22:33:06.374 error Failed to get token. Please restart the adapter and do a new login

ford.0
2024-05-24 22:33:05.020 info Found clientID start API Login

ford.0
2024-05-24 22:33:04.930 info starting. Version 1.0.2 (non-npm: TA2k/ioBroker.ford) in /opt/iobroker/node_modules/iobroker.ford, node: v18.17.1, js-controller: 5.0.19

ford.0
2024-05-24 22:32:58.784 info terminating

@TA2k
Copy link
Owner

TA2k commented May 24, 2024

der Fehler sagt der Prozess hat zu lange gedauert einfach nochmal den login und die localhost url kopieren

@HenkKoopmans
Copy link
Author

Different error in the log

ford.0
2024-05-24 22:37:14.132 warn https://fordconnect.cv.ford.com/common/login/?make=F&application_id=AFDC085B-377A-4351-B23E-5E1D35FB3700&response_type=code&state=123&redirect_uri=https%3A%2F%2Flocalhost%3A3000&scope=access&client_id=30990062-9618-40e1-a27b-7c6bcb23658a

ford.0
2024-05-24 22:37:14.131 warn Please connect your car with the FordPass API and copy the last Url in the settings

@HenkKoopmans
Copy link
Author

I repeated the process, maybe a copy issue

New log:
2024-05-24 22:42:15.425 error {"error":"invalid_client","error_description":"AADB2C90081: The specified client_secret does not match the expected value for this client. Please correct the client_secret and try again.\r\nCorrelation ID: dcef5ff9-cd9f-48e3-b351-c131509344e3\r\nTimestamp: 2024-05-24 20:42:15Z\r\n"}

ford.0
2024-05-24 22:42:15.423 error AxiosError: Request failed with status code 400

ford.0
2024-05-24 22:42:15.398 error Failed to get token. Please restart the adapter and do a new login

ford.0
2024-05-24 22:42:13.941 info Found clientID start API Login

ford.0
2024-05-24 22:42:13.850 info starting. Version 1.0.2 (non-npm: TA2k/ioBroker.ford) in /opt/iobroker/node_modules/iobroker.ford, node: v18.17.1, js-controller: 5.0.19

ford.0
2024-05-24 22:42:07.558 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

@HenkKoopmans
Copy link
Author

I think I found my problem. I made a mistake when copying the secret from my developers account. Do you know how to generate a new secret? According to the FAQ this must be possible via button.However I do not see a button.

@HenkKoopmans
Copy link
Author

So, ich habe es geschafft, mich einzuloggen. Ich habe ein neues Konto mit einer anderen Email erstellt. Dann habe ich mich mit meiner MachE eingeloggt und sehe die gleiche ID und jetzt kenne ich auch das "Geheimnis" (die ersten Ziffern sind gleich...).

Aber... Eine Enttäuschung wir haben jetzt viel weniger interessante Daten zur Verfügung!

@erwini
Copy link

erwini commented May 29, 2024

Ebenfalls auf 1.0.2 upgedated. Auf der developerseite angemeldet. Nur im Kreis redirekted, aber kein API-Key zu kriegen. Mit anderer Email-Adresse als der in fordpass verwendeten email auf der developerseite angemeldet. Prozedur weiterverfolgt und die ClientID und Secret eingebenen. Dann mit dem erzeugten Link wieder mit den Fordpass Zugangsdaten angemeldet und Fahrzeug dazugelinkt. Nach dem "Autorisize" Button auf localhost:3000 umgeleitet mit einer resultierenden Fehlermeldung, logischerweise. Keinen Link gesehen, den man in die das URL-Feld des Adapters eintragen könnte. Wie sollte der aussehen bzw. wo bekommt man diesen her?

@TA2k
Copy link
Owner

TA2k commented May 29, 2024

den localhost:3000 link eingeben wie es in dein Einstellung auch als Platzhalter drin ist

@erwini
Copy link

erwini commented May 29, 2024

Was muss eingetragen werden?
https://localhost:3000 oder https://localhost:3000/?state=123&code= oder https://localhost:3000/?state=123&code=... oder was sollen die 3 Punkte repräsentieren?

Bei diesen Varianten kommt dann: {"error":"invalid_request","error_description":"AADB2C90083: The request is missing required parameter: code.\r\nCorrelation ID: aacd950c-305b-48f2-bece-0ac0457aa8fa\r\nTimes

Wenn ich an der Stelle der 3 Punkte dann die Ford API Client ID eintrage, dann sieht die Antwort so aus:

Failed to get token. Please restart the adapter and do a new login
AxiosError: Request failed with status code 400
{"error":"invalid_grant","error_description":"AADB2C90090: The provided JWE is not a valid 5 segment token.\r\nCorrelation ID: 7c25dffc-d00d-4e9e-acb4-41ac0fff74cb\r\nTimestamp: 2024-...

@TA2k
Copy link
Owner

TA2k commented May 29, 2024

die komplette url

@erwini
Copy link

erwini commented May 29, 2024

welche komplette URL ?

@erwini
Copy link

erwini commented May 29, 2024

An welcher Stelle des Prozesses soll eine URL angezeigt werden / auftauchen? Was steht da drin? Beispiel ?
Vielleicht wird die bei mir aus irgendeinem Grund nicht angezeigt?

@erwini
Copy link

erwini commented May 30, 2024

So, jetzt hab ich das auch hinbekommen, nachdem ich eine API-Doku gefunden habe.

Auszüge: After authorizing, you will see a “This site can’t be reached” message on the next screen of the web browser. This is not an error. Copy the entire URL from this page displayed in the address line of the browser.
Note: If you receive a 500-error response in the URL, clear your browser cache and re-try the account linking process.

Letztlich ist der Part nach dem "code=" der "interessante" individuelle Teil.

Und das könnte auch nach einer gewissen Zeit treffen: "Refresh tokens must be maintained every 30 days for 12 months before account linking must be performed again."

Hope it helps.

@HenkKoopmans
Copy link
Author

Meine Verbindung wurde jetzt getrennt, ich nehme an, dass dies auf die oben erwähnte Erneuerung zurückzuführen ist.
Folgende Fehlermeldungen:

ford.0
2024-06-08 08:52:17.027 Fehler ""

ford.0
2024-06-08 08:52:17.026 error AxiosError: Anfrage fehlgeschlagen mit Statuscode 500

ford.0
2024-06-08 08:52:17.025 error Failed to get vehicles


Ich habe versucht, den Installationsprozess neu zu starten, aber jetzt kommt die URL nicht.

Wie soll ich den "refresh process" durchführen?

Sorry für meine "inexperience" - Ich schätze sehr die Mühe die Du Dir machst um zu antworten und diese Adapter zu betreuen.

@HenkKoopmans
Copy link
Author

Sorry Problem gelöst.
Ford Adapter gelöscht, neu installiert von GitHub, und neu eingerichtet.
Gibt am Anfang ein paar Fehlermeldungen "Zu viele Abfrage" aber mit etwas Geduld geht es.

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

4 participants