Erreur depuis hier Invalid credentials

Bonjour,
Mon système fonctionne parfaitement sans aucun souci visible.
Tout se met à jour nickel.
J’ai juste remarqué depuis hier dans les logs ceci

0019|[2023-06-26 11:15:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0020|[2023-06-26 11:15:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0021|[2023-06-26 12:15:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0022|[2023-06-26 12:15:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0023|[2023-06-26 12:30:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0024|[2023-06-26 12:30:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0025|[2023-06-26 13:45:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0026|[2023-06-26 13:45:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0027|[2023-06-26 15:45:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0028|[2023-06-26 15:45:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0029|[2023-06-26 21:45:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0030|[2023-06-26 21:45:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0031|[2023-06-26 23:20:19]ERROR : Websocket error: Handshake status 403 Forbidden -+-+- {'date': 'Mon, 26 Jun 2023 21:20:19 GMT', 'content-type': 'application/json; charset=UTF-8', 'content-length': '150', 'connection': 'keep-alive', 'x-amz-apigw-id': 'HJUbJHxFDoEF65Q='} -+-+- b'{"message": "User is not authorized to access this resource with an explicit deny", "connectionId":"HJUbJeroDoECH9Q=", "requestId":"HJUbJHxFDoEF65Q="}'
0032|[2023-06-26 23:20:26]INFO : Starting daemon
0033|[2023-06-26 23:20:26]INFO : Log level: error
0034|[2023-06-27 05:00:06]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0035|[2023-06-27 05:00:06]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0036|[2023-06-27 14:30:06]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0037|[2023-06-27 14:30:06]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0038|[2023-06-27 15:30:06]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0039|[2023-06-27 15:30:06]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0040|[2023-06-27 17:45:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0041|[2023-06-27 17:45:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}

J’ai bien accès à mon compte. Pas de modification d’email et de login.
Je ne vois pas d’explication, mais ce n’est peut-être pas grave :slight_smile:

Bah si c’est grave. Les infos de connexions ne sont pas valides.

Si vous n’avez pas changé la config, le plugin n’a pas changé non plus donc c’est que ça a sauté côté gardena.
Recréez l’app sur gardena.

Merci Mips pour ta réponse.
J’hésitais à le faire puisque la remontée d’information en temps réel fonctionnait parfaitement ainsi que les actions.
Je viens de recréer l’application et mis à jour Application key et secret dans les paramètres du plugin.
Wait and see

je ne vois pas comment c’est possible avec l’erreur susmentionnée :thinking:

Bonjour,
Suite à la recréation de mon application Huskvarna et au reparamétrage de mon Plugin tout fonctionne normalement
La remontée d’information se fait parfaitement et je peux envoyer des actions
Pourtant j’ai toujours cette erreur 403 qui revient de temps en temps.

0000|[2023-06-29 09:15:30]INFO : Starting daemon
0001|[2023-06-29 09:15:30]INFO : Log level: error
0002|[2023-06-29 12:45:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0003|[2023-06-29 12:45:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}

Hier j’avais mis les logs en mode debug pour confirmer que tout fonctionnait bien et je n’ai pas eu d’erreur 403
Ce matin je remet en mode info et j’ai cette erreur à 12h45

Qu’avez-vous comme matériels? gardena ou husqvarna?
qu’avez-vous configuré sur le plugin?
qu’avez-vous configuré sur le portail de gardena?

il me faudrait les logs en debug

Bonjour Mips,
Merci pour ton retour rapide
J’ai un Husqvarna 405X
Sur le portail

Sur le plugin

Pour les logs en debug, j’ai ceux d’hier mais il n’y a pas eu d’erreur 403 hier
Je ne peux pas les mettre ici car trop gros

Il me faut avec l’erreur sinon ca sert à rien, je ne peux pas voir quand cela se produit.
Passes les en INFO au moins pour l’instant et attendons une erreur.

Bonjour Mips,
Voici mon log en mode info avec 1 erreur

0004|[2023-06-29 15:46:55]INFO : Starting daemon
0005|[2023-06-29 15:46:55]INFO : Log level: info
0006|[2023-06-29 15:46:55]INFO : Authentication done
0007|[2023-06-29 15:46:55]INFO : updating Husqvarna Automowers
0008|[2023-06-29 15:46:55]INFO : Syncing Husqvarna Automowers with jeedom
0009|[2023-06-29 15:46:55]INFO : Start listening
0010|[2023-06-29 15:46:55]INFO : Websocket connected
0011|[2023-06-29 17:46:55]INFO : Websocket connection close: (1001)-Going away
0012|[2023-06-29 17:46:55]INFO : Restarting husqvarna websocket...
0013|[2023-06-29 17:46:55]INFO : Websocket connected
0014|[2023-06-29 19:46:55]INFO : Websocket connection close: (1001)-Going away
0015|[2023-06-29 19:46:55]INFO : Restarting husqvarna websocket...
0016|[2023-06-29 19:46:56]INFO : Websocket connected
0017|[2023-06-29 21:46:56]INFO : Websocket connection close: (1001)-Going away
0018|[2023-06-29 21:46:56]INFO : Restarting husqvarna websocket...
0019|[2023-06-29 21:46:56]INFO : Websocket connected
0020|[2023-06-29 23:46:56]INFO : Websocket connection close: (1001)-Going away
0021|[2023-06-29 23:46:56]INFO : Restarting husqvarna websocket...
0022|[2023-06-29 23:46:56]INFO : Websocket connected
0023|[2023-06-30 01:46:56]INFO : Websocket connection close: (1001)-Going away
0024|[2023-06-30 01:46:56]INFO : Restarting husqvarna websocket...
0025|[2023-06-30 01:46:56]INFO : Websocket connected
0026|[2023-06-30 03:46:56]INFO : Websocket connection close: (1001)-Going away
0027|[2023-06-30 03:46:56]INFO : Restarting husqvarna websocket...
0028|[2023-06-30 03:46:56]INFO : Websocket connected
0029|[2023-06-30 05:46:56]INFO : Websocket connection close: (1001)-Going away
0030|[2023-06-30 05:46:56]INFO : Restarting husqvarna websocket...
0031|[2023-06-30 05:46:56]INFO : Websocket connected
0032|[2023-06-30 07:46:56]INFO : Websocket connection close: (1001)-Going away
0033|[2023-06-30 07:46:56]INFO : Restarting husqvarna websocket...
0034|[2023-06-30 07:46:56]INFO : Websocket connected
0035|[2023-06-30 09:46:56]INFO : Websocket connection close: (1001)-Going away
0036|[2023-06-30 09:46:56]INFO : Restarting husqvarna websocket...
0037|[2023-06-30 09:46:57]INFO : Websocket connected
0038|[2023-06-30 11:30:05]ERROR : 403:Invalid credentials-{'The supplied credentials are invalid.'}
0039|[2023-06-30 11:30:05]ERROR : Send command to demon error:Invalid credentials-{'The supplied credentials are invalid.'}
0040|[2023-06-30 11:46:57]INFO : Websocket connection close: (1001)-Going away
0041|[2023-06-30 11:46:57]INFO : Restarting husqvarna websocket...
0042|[2023-06-30 11:46:57]INFO : Websocket connected

je peux voir le log du plugin à la même heure? il s’est passé quoi à 11h30? tu as lancé une commande action? elle n’a pas fonctionné je suppose

edit: à mon avis il n’y aura pas grand chose dans le log en mode info mais connais-tu malgré tout l’action effectuée et si elle a eu lieu?
j’ai adapté le log en beta pour avoir plus d’info en cas d’erreur, ca serait bien d’installer cette version pour le prochain cas

Je viens d’installer la nouvelle version.
Je l’avais oublié mais il y a eu une période ou la remontée d’information en temps réel était un peu chaotique.
Du coup, j’avais mis en place un scénario tout les 15mn avec une action de refresh.
Je ne suis pas sûr que cela soit toujours utile.

Ah oui j’avais oublié ca mais ce n’est pas la remontée d’info qui était chaotique mais la stabilité de votre connexion internet :wink:

Quelle mémoire :slight_smile:

Bonjour Mips,
Voici un extrait de mon log
En espérant que cela puisse t’aider.
Encore une fois pas d’urgence car l’ensemble fonctionne très bien :slight_smile:

0109|[2023-07-01 16:31:48]INFO : Websocket connection close: (1001)-Going away
0110|[2023-07-01 16:31:48]INFO : Restarting husqvarna websocket...
0111|[2023-07-01 16:31:49]INFO : Websocket connected
0112|[2023-07-01 18:31:49]INFO : Websocket connection close: (1001)-Going away
0113|[2023-07-01 18:31:49]INFO : Restarting husqvarna websocket...
0114|[2023-07-01 18:31:49]ERROR : Websocket error: Handshake status 403 Forbidden -+-+- {'date': 'Sat, 01 Jul 2023 16:31:49 GMT', 'content-type': 'application/json; charset=UTF-8', 'content-length': '150', 'connection': 'keep-alive', 'x-amz-apigw-id': 'HZI2WF-sDoEF_vw='} -+-+- b'{"message": "User is not authorized to access this resource with an explicit deny", "connectionId":"HZI2WcF5joECI3Q=", "requestId":"HZI2WF-sDoEF_vw="}'
0115|[2023-07-01 18:31:51]INFO : Shuting down
0116|[2023-07-01 18:31:56]INFO : Starting daemon
0117|[2023-07-01 18:31:56]INFO : Log level: info
0118|[2023-07-01 18:31:56]INFO : Authentication done
0119|[2023-07-01 18:31:56]INFO : updating Husqvarna Automowers
0120|[2023-07-01 18:31:56]INFO : Syncing Husqvarna Automowers with jeedom
0121|[2023-07-01 18:31:56]INFO : Start listening
0122|[2023-07-01 18:31:56]INFO : Websocket connected
0123|[2023-07-01 20:31:56]INFO : Websocket connection close: (1001)-Going away
0124|[2023-07-01 20:31:56]INFO : Restarting husqvarna websocket...
0125|[2023-07-01 20:31:56]INFO : Websocket connected
0126|[2023-07-01 22:31:56]INFO : Websocket connection close: (1001)-Going away
0127|[2023-07-01 22:31:56]INFO : Restarting husqvarna websocket...
0128|[2023-07-01 22:31:57]INFO : Websocket connected
0129|[2023-07-02 00:31:56]INFO : Websocket connection close: (1001)-Going away
0130|[2023-07-02 00:31:56]INFO : Restarting husqvarna websocket...
0131|[2023-07-02 00:31:57]INFO : Websocket connected
0132|[2023-07-02 02:31:57]INFO : Websocket connection close: (1001)-Going away
0133|[2023-07-02 02:31:57]INFO : Restarting husqvarna websocket...
0134|[2023-07-02 02:31:57]INFO : Websocket connected
0135|[2023-07-02 04:31:57]INFO : Websocket connection close: (1001)-Going away
0136|[2023-07-02 04:31:57]INFO : Restarting husqvarna websocket...
0137|[2023-07-02 04:31:57]INFO : Websocket connected
0138|[2023-07-02 06:31:57]INFO : Websocket connection close: (1001)-Going away
0139|[2023-07-02 06:31:57]INFO : Restarting husqvarna websocket...
0140|[2023-07-02 06:31:58]INFO : Websocket connected
0141|[2023-07-02 08:31:57]INFO : Websocket connection close: (1001)-Going away
0142|[2023-07-02 08:31:57]INFO : Restarting husqvarna websocket...
0143|[2023-07-02 08:31:58]INFO : Websocket connected
0144|[2023-07-02 10:31:57]INFO : Websocket connection close: (1001)-Going away
0145|[2023-07-02 10:31:57]INFO : Restarting husqvarna websocket...
0146|[2023-07-02 10:31:58]INFO : Websocket connected
0147|[2023-07-02 12:31:58]INFO : Websocket connection close: (1001)-Going away
0148|[2023-07-02 12:31:58]INFO : Restarting husqvarna websocket...
0149|[2023-07-02 12:31:58]INFO : Websocket connected
0150|[2023-07-02 14:31:58]INFO : Websocket connection close: (1001)-Going away
0151|[2023-07-02 14:31:58]INFO : Restarting husqvarna websocket...
0152|[2023-07-02 14:31:58]INFO : Websocket connected
0153|[2023-07-02 16:31:58]INFO : Websocket connection close: (1001)-Going away
0154|[2023-07-02 16:31:58]INFO : Restarting husqvarna websocket...
0155|[2023-07-02 16:31:58]INFO : Websocket connected
0156|[2023-07-02 18:31:58]INFO : Websocket connection close: (1001)-Going away
0157|[2023-07-02 18:31:58]INFO : Restarting husqvarna websocket...
0158|[2023-07-02 18:31:58]ERROR : Websocket error: Handshake status 403 Forbidden -+-+- {'date': 'Sun, 02 Jul 2023 16:31:58 GMT', 'content-type': 'application/json; charset=UTF-8', 'content-length': '150', 'connection': 'keep-alive', 'x-amz-apigw-id': 'Hcbz2EeOjoEFoSg='} -+-+- b'{"message": "User is not authorized to access this resource with an explicit deny", "connectionId":"Hcbz2f3FjoECEtg=", "requestId":"Hcbz2EeOjoEFoSg="}'
0159|[2023-07-02 18:32:00]INFO : Shuting down
0160|[2023-07-02 18:32:06]INFO : Starting daemon
0161|[2023-07-02 18:32:06]INFO : Log level: info
0162|[2023-07-02 18:32:08]INFO : Authentication done
0163|[2023-07-02 18:32:08]INFO : updating Husqvarna Automowers
0164|[2023-07-02 18:32:08]INFO : Syncing Husqvarna Automowers with jeedom
0165|[2023-07-02 18:32:08]INFO : Start listening
0166|[2023-07-02 18:32:09]INFO : Websocket connected
0167|[2023-07-02 20:32:08]INFO : Websocket connection close: (1001)-Going away
0168|[2023-07-02 20:32:08]INFO : Restarting husqvarna websocket...
0169|[2023-07-02 20:32:09]INFO : Websocket connected

Ok donc on voit que tout d’un coup lors d’un renouvellement les credentials sont refusés, du coup le démon redémarre de lui-même (ca c’était la sécurité que j’avais implémentée depuis ton post précédent) et quelques secondes (11s ici si je compte bien) il est de nouveau connecté.
Donc clairement il y a eu un couac coté husqvarna, je ne sais rien faire contre ça je pense; rien de plus que ce qui est déjà en place et qui répare la situation tout seul donc voila… je pense que ca va rester comme ca.

Merci Mips pour ta réponse et ton investissement
En tout cas super content du résultat

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.