jpgorganizer / ioBroker.smartgarden

GARDENA smart system adapter for ioBroker
Other
21 stars 8 forks source link

400 Bad Request #45

Closed tobiasaibot closed 2 years ago

tobiasaibot commented 2 years ago

Hallo,

leider funktioniert seit ungefähr zwei Wochen die Verbindung nicht mehr:

smartgarden.0 2022-05-09 15:15:03.531 info 1/ getConnection: trying to connect again in 300 seconds
smartgarden.0 2022-05-09 15:15:03.531 info 1/ getConnection: returned connection error: request returned 400 Bad Request
smartgarden.0 2022-05-09 15:15:03.530 error Error: request returned 400 Bad Request
smartgarden.0 2022-05-09 15:15:03.523 info 1/ Connection failure:..return with error
smartgarden.0 2022-05-09 15:15:03.521 info 1/ Connection failure.response.statusCode/Message=400/Bad Request
smartgarden.0 2022-05-09 15:15:02.213 info 1/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev
smartgarden.0 2022-05-09 15:15:02.213 info 1/ connecting to Gardena Smart System Service ...
smartgarden.0 2022-05-09 15:15:02.210 info 1/ connectToGardena...
smartgarden.0 2022-05-09 15:15:02.209 info 1/ getConnection...
smartgarden.0 2022-05-09 15:15:01.987 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v14.19.1, js-controller: 4.0.23

Kann mir jemand einen Tipp geben?

Danke :-)

jpgorganizer commented 2 years ago

please update to 1.0.6 (in latest repository) and give feedback logs please with loglevel 3

tobiasaibot commented 2 years ago

hi,

updated :-)

smartgarden.0 2022-05-10 08:33:05.631 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:33:05.627 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:33:05.590 info 3/ getConnection: trying to connect again in 300 seconds
smartgarden.0 2022-05-10 08:33:05.590 info 3/ getConnection: returned connection error: request returned 400 Bad Request
smartgarden.0 2022-05-10 08:33:05.589 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:33:05.588 error Error: request returned 400 Bad Request
smartgarden.0 2022-05-10 08:33:05.587 info 3/ Connection failure:..return with error
smartgarden.0 2022-05-10 08:33:05.587 info 3/ Connection failure.response.statusCode/Message=400/Bad Request
smartgarden.0 2022-05-10 08:33:05.586 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:33:04.990 info 3/ ---> State change by device: state sg.0.info.RateLimitCounter changed, (ack = true)
smartgarden.0 2022-05-10 08:33:04.987 info 3/ ---> State change by device: state sg.0.info.adapterversion changed: 1.0.6 (ack = true)
smartgarden.0 2022-05-10 08:33:04.979 info 3/ ---> State change by device: state sg.0.info.revision changed: Main: 2755 / API: 2757 (ack = true)
smartgarden.0 2022-05-10 08:33:04.977 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:33:04.966 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:33:04.954 info 3/ sgSetState: info.revision value=Main: 2755 / API: 2757 ack=true
smartgarden.0 2022-05-10 08:33:04.945 info 3/ incrementLimitCounter: new counters : y2022 / m2022-05: 15 / d2022-05-10: 4 / hr06: 4 / last30days: 15 / last31days: 15
smartgarden.0 2022-05-10 08:33:04.882 info 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev
smartgarden.0 2022-05-10 08:33:04.881 info 3/ connecting to Gardena Smart System Service ...
smartgarden.0 2022-05-10 08:33:04.880 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:33:04.877 info 3/ connectToGardena...
smartgarden.0 2022-05-10 08:33:04.876 info 3/ getConnection...
smartgarden.0 2022-05-10 08:33:04.646 info starting. Version 1.0.6 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v14.19.1, js-controller: 4.0.23
smartgarden.0 2022-05-10 08:33:00.078 info Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
smartgarden.0 2022-05-10 08:33:00.072 info terminating
smartgarden.0 2022-05-10 08:33:00.024 info 3/ cleaned everything up...
smartgarden.0 2022-05-10 08:33:00.023 info Scheduled restart.
smartgarden.0 2022-05-10 08:32:53.963 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:32:53.960 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:32:53.943 info 3/ getConnection: trying to connect again in 300 seconds
smartgarden.0 2022-05-10 08:32:53.943 info 3/ getConnection: returned connection error: request returned 400 Bad Request
smartgarden.0 2022-05-10 08:32:53.942 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:32:53.941 error Error: request returned 400 Bad Request
smartgarden.0 2022-05-10 08:32:53.940 info 3/ Connection failure:..return with error
smartgarden.0 2022-05-10 08:32:53.939 info 3/ Connection failure.response.statusCode/Message=400/Bad Request
smartgarden.0 2022-05-10 08:32:53.938 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:32:53.898 info 3/ ---> State change by device: state sg.0.info.RateLimitCounter changed, (ack = true)
smartgarden.0 2022-05-10 08:32:53.891 info 3/ ---> State change by device: state sg.0.info.adapterversion changed: 1.0.6 (ack = true)
smartgarden.0 2022-05-10 08:32:53.848 info 3/ ---> State change by device: state sg.0.info.revision changed: Main: 2755 / API: 2757 (ack = true)
smartgarden.0 2022-05-10 08:32:53.840 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:32:53.835 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true)
smartgarden.0 2022-05-10 08:32:53.827 info 3/ sgSetState: info.revision value=Main: 2755 / API: 2757 ack=true
smartgarden.0 2022-05-10 08:32:53.823 info 3/ incrementLimitCounter: new counters : y2022 / m2022-05: 14 / d2022-05-10: 3 / hr06: 3 / last30days: 14 / last31days: 14
smartgarden.0 2022-05-10 08:32:53.762 info 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev
smartgarden.0 2022-05-10 08:32:53.762 info 3/ connecting to Gardena Smart System Service ...
smartgarden.0 2022-05-10 08:32:53.761 info 3/ sgSetState: info.connection value=false ack=true
smartgarden.0 2022-05-10 08:32:53.757 info 3/ connectToGardena...
smartgarden.0 2022-05-10 08:32:53.756 info 3/ getConnection...
smartgarden.0 2022-05-10 08:32:53.545 info starting. Version 1.0.6 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v14.19.1, js-controller: 4.0.23
jpgorganizer commented 2 years ago

:-)

tobiasaibot commented 2 years ago

Hi, sorry, why closed?

There is still a 400 Bad request :-(

jpgorganizer commented 2 years ago

you wrote

updated :-)

how should this be interpreted? I interpreted as "all ok"

I will not read logs if I don't know what I should look for.

tobiasaibot commented 2 years ago

Sorry for missunderstanding and my false communication :-(

jpgorganizer commented 2 years ago

what's that ... this is no log from the adapter. This must be something else ???

smartgarden.0 | 2022-05-10 08:33:00.023 | info | Scheduled restart. -- | -- | -- | --

do you have an automatic restart? For me an error 400 is an unspecific error. Typically its something in the environment, may be you hit all limits, have wrong login data or you have an other issue with your system.

tobiasaibot commented 2 years ago

re-installed and it works. many thanks

offle commented 1 year ago

Hi, I have exactly the same issue, but the re-installation of the adapter doesn't work. Do you have any Idea?

smartgarden.0 2022-10-24 09:36:51.365 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:36:51.363 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:36:51.341 info 3/ getConnection: trying to connect again in 300 seconds smartgarden.0 2022-10-24 09:36:51.341 info 3/ getConnection: returned connection error: request returned 400 Bad Request smartgarden.0 2022-10-24 09:36:51.340 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:36:51.339 error Error: request returned 400 Bad Request smartgarden.0 2022-10-24 09:36:51.339 info 3/ Connection failure:..return with error smartgarden.0 2022-10-24 09:36:51.338 info 3/ Connection failure.response.statusCode/Message=400/Bad Request smartgarden.0 2022-10-24 09:36:51.337 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:36:51.159 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:36:51.132 info 3/ connect ... using password grant smartgarden.0 2022-10-24 09:36:51.131 info 3/ connect ... empty application secret smartgarden.0 2022-10-24 09:36:51.130 info 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev smartgarden.0 2022-10-24 09:36:51.130 info 3/ connecting to Gardena Smart System Service ... smartgarden.0 2022-10-24 09:36:51.129 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:36:51.128 info 3/ connectToGardena... smartgarden.0 2022-10-24 09:36:51.126 info 3/ getConnection... smartgarden.0 2022-10-24 09:31:51.153 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:31:51.147 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:31:51.125 info 3/ getConnection: trying to connect again in 300 seconds smartgarden.0 2022-10-24 09:31:51.125 info 3/ getConnection: returned connection error: request returned 400 Bad Request smartgarden.0 2022-10-24 09:31:51.124 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:31:51.123 error Error: request returned 400 Bad Request smartgarden.0 2022-10-24 09:31:51.122 info 3/ Connection failure:..return with error smartgarden.0 2022-10-24 09:31:51.121 info 3/ Connection failure.response.statusCode/Message=400/Bad Request smartgarden.0 2022-10-24 09:31:51.120 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:31:51.063 info 3/ ---> State change by device: state sg.0.info.adapterversion changed: 2.0.0 (ack = true) smartgarden.0 2022-10-24 09:31:50.985 info 3/ ---> State change by device: state sg.0.info.revision changed: Main: 2831 / API: 2831 (ack = true) smartgarden.0 2022-10-24 09:31:50.976 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:31:50.963 info 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) smartgarden.0 2022-10-24 09:31:50.951 info 3/ sgSetState: info.revision value=Main: 2831 / API: 2831 ack=true smartgarden.0 2022-10-24 09:31:50.866 info 3/ connect ... using password grant smartgarden.0 2022-10-24 09:31:50.864 info 3/ connect ... empty application secret smartgarden.0 2022-10-24 09:31:50.863 info 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev smartgarden.0 2022-10-24 09:31:50.862 info 3/ connecting to Gardena Smart System Service ... smartgarden.0 2022-10-24 09:31:50.859 info 3/ sgSetState: info.connection value=false ack=true smartgarden.0 2022-10-24 09:31:50.853 info 3/ connectToGardena... smartgarden.0 2022-10-24 09:31:50.851 info 3/ getConnection... smartgarden.0 2022-10-24 09:31:50.752 info starting. Version 2.0.0 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v16.18.0, js-controller: 4.0.23