Coder Social home page Coder Social logo

Cannot connect about iobroker.ford HOT 37 OPEN

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024
Cannot connect

from iobroker.ford.

Comments (37)

mlapp avatar mlapp commented on July 18, 2024 1

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.

from iobroker.ford.

mlapp avatar mlapp commented on July 18, 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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

Korrektur, com Domain funktioniert. !!

from iobroker.ford.

erwini avatar erwini commented on July 18, 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?

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

bitte v1.0.1 nutzen

from iobroker.ford.

erwini avatar erwini commented on July 18, 2024

gleiche Fehler mit v1.0.1 :-(

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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?

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

die in der ersten text box

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

wie sieht die localhost url aus die du einkopiert hast

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 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&[email protected] 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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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.

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

Wie sieht die localhost url aus

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

I have removed the last xx digits.

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

was sagt der log

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024
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

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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.

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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!

from iobroker.ford.

erwini avatar erwini commented on July 18, 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?

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

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

from iobroker.ford.

erwini avatar erwini commented on July 18, 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-...

from iobroker.ford.

TA2k avatar TA2k commented on July 18, 2024

die komplette url

from iobroker.ford.

erwini avatar erwini commented on July 18, 2024

welche komplette URL ?

from iobroker.ford.

erwini avatar erwini commented on July 18, 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?

from iobroker.ford.

erwini avatar erwini commented on July 18, 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.

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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.

from iobroker.ford.

HenkKoopmans avatar HenkKoopmans commented on July 18, 2024

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.

from iobroker.ford.

bjoernszw avatar bjoernszw commented on July 18, 2024

Hallo,

wo find ich den die "Connect URL to get next URL" ? Die URL after Finish hab ich bereits. Der Adapter sagt auch Login to API success. Aber dann kommt trotzdem der Fehler:

ford.0 | 37286 | 2024-06-29 09:44:32.670 | error | ""
ford.0 | 37286 | 2024-06-29 09:44:32.670 | error | AxiosError: Request failed with status code 403
ford.0 | 37286 | 2024-06-29 09:44:32.669 | error | Failed to get vin

Fehlt mir noch die connect URL? Die URL after Finish , da hab ich jetzt "nur" die eine URL von dem letzten Fahrzeug drinne? Oder wie mach ich das mit mehreren Fahrzeugen?

Über ein Tipp würd ich mich freuen!
Grüße

from iobroker.ford.

bjoernszw avatar bjoernszw commented on July 18, 2024

Hallo,

wo find ich den die "Connect URL to get next URL" ? Die URL after Finish hab ich bereits. Der Adapter sagt auch Login to API success. Aber dann kommt trotzdem der Fehler:

ford.0 | 37286 | 2024-06-29 09:44:32.670 | error | "" ford.0 | 37286 | 2024-06-29 09:44:32.670 | error | AxiosError: Request failed with status code 403 ford.0 | 37286 | 2024-06-29 09:44:32.669 | error | Failed to get vin

Fehlt mir noch die connect URL? Die URL after Finish , da hab ich jetzt "nur" die eine URL von dem letzten Fahrzeug drinne? Oder wie mach ich das mit mehreren Fahrzeugen?

Über ein Tipp würd ich mich freuen! Grüße

ok, hab nun den Adapter gelöscht und nochmal neu angebunden dann siehts gut aus. aber wenn ich mehrere Fahrzeuge habe muss ich nun pro Fahrzeug eine eigene 'Instanz bauen?

from iobroker.ford.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.