Autor Thema: invalid_token - The access token expired  (Gelesen 193 mal)

Offline hoppel118

  • Sr. Member
  • ****
  • Beiträge: 698
invalid_token - The access token expired
« am: 07 November 2019, 09:17:41 »
Hi,

gestern hatte ich folgende Meldungen im Logfile:

2019.11.06 09:04:31 2: KGN36HI33 event channel received an http error: HTTP/1.1 503 Service Temporarily Unavailable

2019.11.06 09:09:41 2: KGN36HI33 event channel received an http error: HTTP/1.1 503 Service Temporarily Unavailable

2019.11.06 09:18:10 3: hcconn refreshing token
2019.11.06 09:18:10 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:19:10 3: hcconn refreshing token
2019.11.06 09:19:11 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:19:51 2: KGN36HI33 event channel received an http error: HTTP/1.1 503 Service Temporarily Unavailable

2019.11.06 09:20:11 3: hcconn refreshing token
2019.11.06 09:20:11 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:21:11 3: hcconn refreshing token
2019.11.06 09:21:11 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:22:11 3: hcconn refreshing token
2019.11.06 09:22:11 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:23:11 3: hcconn refreshing token
2019.11.06 09:23:12 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:24:12 3: hcconn refreshing token
2019.11.06 09:24:12 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:25:12 3: hcconn refreshing token
2019.11.06 09:25:13 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:26:13 3: hcconn refreshing token
2019.11.06 09:26:13 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:27:13 3: hcconn refreshing token
2019.11.06 09:27:13 2: hcconn: invalid json detected: >><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Temporarily Unavailable</title></head><body><h1>Service Temporarily Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html><<
2019.11.06 09:27:13 2: hcconn: Refreshing token failed too many times, stopping
2019.11.06 09:35:01 2: KGN36HI33 event channel received an http error: HTTP/1.1 503 Service Temporarily Unavailable

Wenn ich nun an meinem Kühlschrank die Temperatur einstellen möchte, erhalte ich folgende Meldung:

{
  "error": {
    "key": "invalid_token",
    "description": "The access token expired"
  }
}

Nachdem ich fhem neugestartet habe, sieht "hcconn" wie folgt aus:

Internals:
   DEF        35391B8B36BE356D714647DC06BAFC86CF80B29B2578981C7CB02F82282C6BA9 https://xxx.xxx.xxx.xxx:8083/fhem?cmd.Test=set%20hcconn%20auth%20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   FUUID      5db19986-f33f-5dcf-3403-4ee32e22b5000c49
   NAME       hcconn
   NR         485
   STATE      Login necessary
   TYPE       HomeConnectConnection
   api_uri    https://api.home-connect.com
   client_id  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   client_secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   expires_at
   redirect_uri https://xxx.xxx.xxx.xxx:8083/fhem?cmd.Test=set%20hcconn%20auth%20
   READINGS:
     2019-11-07 09:03:01   state           Login necessary
     2019-11-05 15:18:10   tokenExpiry     Wed Nov  6 15:18:10 2019
Attributes:
   room       Hersteller->HomeConnect

Anschließend habe ich nochmal auf den Link "Home Connect Login" am hcconn Device geklickt und mich erneut eingeloggt. Danach ging wieder alles.


Ist dieses Verhalten normal?

Gruß Hoppel
FHEM 5.9 Homebridge
Server: Openmediavault (Debian), XEON E3-1240L-v5, Supermicro X11SSH-CTF, 64GB ECC RAM, SSD, RAID-Z2
Homematic: VCCU 2xHMUSB, HM-CC-RT-DN, HM-WDS40-TH-I-2, HM-WDS10-TH-O, HM-ES-PMSw1-Pl
Philips Hue: RWL021, LCT015, LCT012, LCT003, LTW013, LTC003, LTC001
Xiaomi: Roborock S50

Offline swhome

  • Moderator
  • Full Member
  • ***
  • Beiträge: 267
Antw:invalid_token - The access token expired
« Antwort #1 am: 07 November 2019, 10:43:29 »
Der Text in der Fehlermeldung deutet darauf hin dass es im Anmeldeserver von Home Connect ein Problem oder ein Wartungsfenster gab. Anscheinend war das Problem dann nach einer Weile wieder weg.
Im Einsatz: FHEM auf Raspberry Pi mit 350 devices, hauptsächlich Homematic Wired und HM-Heizungsregler, dazu diverse Eigenbauten für Fussbodenheizung und LED Beleuchtung. Und jetzt mit Alexa!

Offline hoppel118

  • Sr. Member
  • ****
  • Beiträge: 698
Antw:invalid_token - The access token expired
« Antwort #2 am: 07 November 2019, 22:30:52 »
Jo, richtig. Dann werde ich das mal weiter beobachten. Schade, das die Loginversuche dann irgendwann abgebrochen werden. ;)

Was mich wundert, ist dass nicht mal ein FHEM Neustart den Login herbeiführen konnte. Ich musste auf den Link „Home Connect Login“ klicken und mich manuell auf der Home Connect Website einloggen.

Gruß Hoppel

« Letzte Änderung: 08 November 2019, 15:57:31 von hoppel118 »
FHEM 5.9 Homebridge
Server: Openmediavault (Debian), XEON E3-1240L-v5, Supermicro X11SSH-CTF, 64GB ECC RAM, SSD, RAID-Z2
Homematic: VCCU 2xHMUSB, HM-CC-RT-DN, HM-WDS40-TH-I-2, HM-WDS10-TH-O, HM-ES-PMSw1-Pl
Philips Hue: RWL021, LCT015, LCT012, LCT003, LTW013, LTC003, LTC001
Xiaomi: Roborock S50