Websocket error: Handshake status 403 Forbidden

Bonjour,

Depuis quelques jours mon plugin ne démarre plus, j’ai systématiquement l’erreur suivante sans le log Gardena_daemon :

Handshake status 403 Forbidden - goodbye
Websocket error: Handshake status 403 Forbidden

Je suis en 4.3.12 et plugin Gardena Beta 2022-11-23 12:26:38. Même problème en stable.

Log en debug :

[2022-12-07 15:52:18]INFO : Starting daemon
[2022-12-07 15:52:18]INFO : Log level: debug
[2022-12-07 15:52:18]DEBUG : Socket port: 55070
[2022-12-07 15:52:18]DEBUG : PID file: /tmp/jeedom/gardena/deamon.pid
[2022-12-07 15:52:18]DEBUG : Init request module v2.28.1
[2022-12-07 15:52:19]INFO : Authentication done
[2022-12-07 15:52:19]INFO : updating Husqvarna Automowers
[2022-12-07 15:52:19]INFO : Syncing Husqvarna Automowers with jeedom
[2022-12-07 15:52:19]DEBUG : Send to jeedom :  {'husqvarna_automower': {'id': '78886428-b0ff-455c-9bcc-2c872f578472', 'type': 'mower', 'name': 'Denise', 'model_type': 'HUSQVARNA AUTOMOWER® 430X', 'serial': 190504640, 'battery_level': 100, 'battery_type': 'Rechargeable', 'mode': 'HOME', 'activity': 'NOT_APPLICABLE', 'state': 'OFF', 'errorCode': 0, 'errorDesc': '', 'planner_nextStartTimestamp': 0, 'planner_override': {'action': 'NOT_ACTIVE'}, 'planner_restrictedReason': 'NOT_APPLICABLE', 'cuttingHeight': 7, 'headlight': {'mode': 'ALWAYS_OFF'}, 'positions': '47.6598016,6.92944/47.65983,6.9294016/47.6598283,6.92949/47.659925,6.9295966/47.659865,6.9295283/47.6598716,6.9294516/47.6599183,6.92941/47.6598383,6.9294283/47.6598416,6.9294466/47.6598883,6.9295116/47.6598266,6.9294516/47.659825,6.92946/47.6598283,6.9294716/47.6598766,6.9294866/47.6598766,6.9294833/47.6598766,6.9294816/47.6598733,6.9294916/47.6598416,6.9294533/47.65988,6.929485/47.6598833,6.92943/47.6598516,6.929325/47.659815,6.9294016/47.65984,6.929425/47.6598416,6.9293683/47.6598316,6.9292633/47.65985,6.9293616/47.6598166,6.9294733/47.6597966,6.9294466/47.6597716,6.929415/47.6598316,6.9294366/47.65986,6.9293883/47.6598716,6.9293966/47.659865,6.929375/47.659845,6.92945/47.6598533,6.9294883/47.6598383,6.92943/47.6598366,6.92949/47.659845,6.929485/47.6598216,6.9294/47.6598283,6.9294316/47.6598383,6.9294816/47.6598016,6.929445/47.659835,6.92956/47.6598266,6.92946/47.6598566,6.9293016/47.6598333,6.9294716/47.659855,6.9293216/47.6598733,6.9293566/47.6598583,6.9294033/47.65986,6.92943', 'position': '47.6598016,6.92944', 'latitude': 47.6598016, 'longitude': 6.92944, 'connected': False, 'statusTimestamp': 1669583641009, 'calendarTasks': [{'start': 0, 'duration': 1440, 'monday': (True,), 'tuesday': (True,), 'wednesday': (True,), 'thursday': (True,), 'friday': (True,), 'saturday': (True,), 'sunday': (True,)}]}}
[2022-12-07 15:52:19]DEBUG : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-07 15:52:19]DEBUG : Checking websocket connection status in 30s...
[2022-12-07 15:52:19]INFO : Start listening
[2022-12-07 15:52:19]DEBUG : Socket interface started
[2022-12-07 15:52:19]DEBUG : LoopNetServer Thread started
[2022-12-07 15:52:19]DEBUG : Listening on: [localhost:55070]
[2022-12-07 15:52:19]ERROR : Handshake status 403 Forbidden - goodbye
[2022-12-07 15:52:19]ERROR : Websocket error: Handshake status 403 Forbidden
[2022-12-07 15:52:19]DEBUG : calling on error callback
[2022-12-07 15:52:19]DEBUG : exception, restarting daemon...
[2022-12-07 15:52:19]DEBUG : Send to jeedom :  {'daemon': 'start'}
[2022-12-07 15:52:21]DEBUG : Signal 15 caught, exiting...
[2022-12-07 15:52:21]INFO : Shuting down
[2022-12-07 15:52:25]INFO : Starting daemon
[2022-12-07 15:52:25]INFO : Log level: debug
[2022-12-07 15:52:25]DEBUG : Socket port: 55070
[2022-12-07 15:52:25]DEBUG : PID file: /tmp/jeedom/gardena/deamon.pid
[2022-12-07 15:52:25]DEBUG : Init request module v2.28.1
[2022-12-07 15:52:25]INFO : Authentication done
[2022-12-07 15:52:25]INFO : updating Husqvarna Automowers
[2022-12-07 15:52:26]INFO : Syncing Husqvarna Automowers with jeedom
[2022-12-07 15:52:26]DEBUG : Send to jeedom :  {'husqvarna_automower': {'id': '78886428-b0ff-455c-9bcc-2c872f578472', 'type': 'mower', 'name': 'Denise', 'model_type': 'HUSQVARNA AUTOMOWER® 430X', 'serial': 190504640, 'battery_level': 100, 'battery_type': 'Rechargeable', 'mode': 'HOME', 'activity': 'NOT_APPLICABLE', 'state': 'OFF', 'errorCode': 0, 'errorDesc': '', 'planner_nextStartTimestamp': 0, 'planner_override': {'action': 'NOT_ACTIVE'}, 'planner_restrictedReason': 'NOT_APPLICABLE', 'cuttingHeight': 7, 'headlight': {'mode': 'ALWAYS_OFF'}, 'positions': '47.6598016,6.92944/47.65983,6.9294016/47.6598283,6.92949/47.659925,6.9295966/47.659865,6.9295283/47.6598716,6.9294516/47.6599183,6.92941/47.6598383,6.9294283/47.6598416,6.9294466/47.6598883,6.9295116/47.6598266,6.9294516/47.659825,6.92946/47.6598283,6.9294716/47.6598766,6.9294866/47.6598766,6.9294833/47.6598766,6.9294816/47.6598733,6.9294916/47.6598416,6.9294533/47.65988,6.929485/47.6598833,6.92943/47.6598516,6.929325/47.659815,6.9294016/47.65984,6.929425/47.6598416,6.9293683/47.6598316,6.9292633/47.65985,6.9293616/47.6598166,6.9294733/47.6597966,6.9294466/47.6597716,6.929415/47.6598316,6.9294366/47.65986,6.9293883/47.6598716,6.9293966/47.659865,6.929375/47.659845,6.92945/47.6598533,6.9294883/47.6598383,6.92943/47.6598366,6.92949/47.659845,6.929485/47.6598216,6.9294/47.6598283,6.9294316/47.6598383,6.9294816/47.6598016,6.929445/47.659835,6.92956/47.6598266,6.92946/47.6598566,6.9293016/47.6598333,6.9294716/47.659855,6.9293216/47.6598733,6.9293566/47.6598583,6.9294033/47.65986,6.92943', 'position': '47.6598016,6.92944', 'latitude': 47.6598016, 'longitude': 6.92944, 'connected': False, 'statusTimestamp': 1669583641009, 'calendarTasks': [{'start': 0, 'duration': 1440, 'monday': (True,), 'tuesday': (True,), 'wednesday': (True,), 'thursday': (True,), 'friday': (True,), 'saturday': (True,), 'sunday': (True,)}]}}
[2022-12-07 15:52:26]DEBUG : Connect Websocket to wss://ws.openapi.husqvarna.dev/v1
[2022-12-07 15:52:26]DEBUG : Checking websocket connection status in 30s...
[2022-12-07 15:52:26]INFO : Start listening
[2022-12-07 15:52:26]DEBUG : Socket interface started
[2022-12-07 15:52:26]DEBUG : LoopNetServer Thread started
[2022-12-07 15:52:26]DEBUG : Listening on: [localhost:55070]
[2022-12-07 15:52:26]ERROR : Handshake status 403 Forbidden - goodbye
[2022-12-07 15:52:26]ERROR : Websocket error: Handshake status 403 Forbidden
[2022-12-07 15:52:26]DEBUG : calling on error callback
[2022-12-07 15:52:26]DEBUG : exception, restarting daemon...
[2022-12-07 15:52:26]DEBUG : Send to jeedom :  {'daemon': 'start'}
[2022-12-07 15:52:27]DEBUG : ...and calling onFailure
[2022-12-07 15:52:27]INFO : Shuting down
[2022-12-07 15:52:27]DEBUG : Removing PID file /tmp/jeedom/gardena/deamon.pid
[2022-12-07 15:52:27]DEBUG : LoopNetServer Thread stopped
[2022-12-07 15:52:27]DEBUG : Exit 0

J’ai supprimé et recréer l’application sur le portail Husqvarna et repris les nouveaux key/secret mais rien à faire le plugin ne démarre jamais. J’ai bien coché uniquement l’API automower. J’ai tenté également la suppression/réinstallation du plugin.

Sur l’app. iPhone Automower tout fonctionne parfaitement.

Est-ce qu’il est possible que mon IP ait été blacklistée par les serveurs Gardena ?

Bonjour,

et vous avez bien lié les API coté husqvarna également dans cet écran? :

  • Stoppez le démon.
  • Sans supprimer l’app coté husqvarna, essayez de renouveler l’api secret et de détacher et rattacher l’api Automower.
  • modifiez la config avec le nouveau secret et
  • relancez le démon.

Je ne pense pas

Si ca ne fonctionne toujours pas, je veux bien en privé une capture de la config (l’écran complet) coté husqvarna au cas où je verrais quelque chose.
Vous pouvez aussi me créér une app et m’envoyer en privé la clé et le secret et je teste de mon coté, ca éliminera le doute.

Oui j’ai bien lié les API authentication et automower après création de l’application.

Je viens de renouveler l’api secret et détacher/rattacher l’api Automower mais le problème reste le même.

Je vous envoi la capture d’écran et la nouvelle app.

6 messages ont été scindés en un nouveau sujet : (invalid_request) Blocked for too many login-attempts

Pour le suivi, finalement résolu ici:

=> je clôture ce post

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