Je remarque dans les logs, lors de la synchronisation :
0043|[2024-03-07 12:23:44]DEBUG : synchronize:: guzzle:GuzzleHttp\Client::__set_state(array( 'config' => array ( 'cookies' => GuzzleHttp\Cookie\FileCookieJar::__set_state(array( 'filename' => '/tmp/jeedom/netatmopro/b27536f76a9d4d240a34dbd84bc85085', 'storeSessionCookies' => true, 'cookies' => array ( 6 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'authnetatmocomrefresh_token', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '0', 'Expires' => 1552130622, 'Secure' => true, 'Discard' => false, 'HttpOnly' => true, ), )), 7 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'netatmocomaccess_token', 'Value' => 'deleted', 'Domain' => '.netatmo.com', 'Path' => '/', 'Max-Age' => '0', 'Expires' => 1678274621, 'Secure' => true, 'Discard' => false, 'HttpOnly' => false, ), )), 8 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'XSRF-TOKEN', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '7200', 'Expires' => 1709817824, 'Secure' => true, 'Discard' => false, 'HttpOnly' => false, ), )), 9 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'authnetatmocomlaravel_session', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '7200', 'Expires' => 1709817824, 'Secure' => true, 'Discard' => false, 'HttpOnly' => true, ), )), ), 'strictMode' => false, )), 'handler' => GuzzleHttp\HandlerStack::__set_state(array( 'handler' => Closure::__set_state(array( )), 'stack' => array ( 0 => array ( 0 => Closure::__set_state(array( )), 1 => 'http_errors', ), 1 => array ( 0 => Closure::__set_state(array( )), 1 => 'allow_redirects', ), 2 => array ( 0 => Closure::__set_state(array( )), 1 => 'cookies', ), 3 => array ( 0 => Closure::__set_state(array( )), 1 => 'prepare_body', ), ), 'cached' => Closure::__set_state(array( )), )), 'allow_redirects' => array ( 'max' => 5, 'protocols' => array ( 0 => 'http', 1 => 'https', ), 'strict' => false, 'referer' => false, 'track_redirects' => false, ), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'idn_conversion' => true, 'headers' => array ( 'User-Agent' => 'GuzzleHttp/6.5.5 curl/7.74.0 PHP/7.4.33', ), ), ))
0044|[2024-03-07 12:23:44]DEBUG : synchronize:: jar:GuzzleHttp\Cookie\FileCookieJar::__set_state(array( 'filename' => '/tmp/jeedom/netatmopro/b27536f76a9d4d240a34dbd84bc85085', 'storeSessionCookies' => true, 'cookies' => array ( 6 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'authnetatmocomrefresh_token', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '0', 'Expires' => 1552130622, 'Secure' => true, 'Discard' => false, 'HttpOnly' => true, ), )), 7 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'netatmocomaccess_token', 'Value' => 'deleted', 'Domain' => '.netatmo.com', 'Path' => '/', 'Max-Age' => '0', 'Expires' => 1678274621, 'Secure' => true, 'Discard' => false, 'HttpOnly' => false, ), )), 8 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'XSRF-TOKEN', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '7200', 'Expires' => 1709817824, 'Secure' => true, 'Discard' => false, 'HttpOnly' => false, ), )), 9 => GuzzleHttp\Cookie\SetCookie::__set_state(array( 'data' => array ( 'Name' => 'authnetatmocomlaravel_session', 'Value' => '[element caché]', 'Domain' => '.auth.netatmo.com', 'Path' => '/', 'Max-Age' => '7200', 'Expires' => 1709817824, 'Secure' => true, 'Discard' => false, 'HttpOnly' => true, ), )), ), 'strictMode' => false, ))
0045|[2024-03-07 12:23:44]DEBUG : synchronize:: uri:'https://app.netatmo.net/api/homesdata'
Le script plante ici car la valeur de netatmocomaccess_token est égale à ‹ deleted › … ?