Bonjour,
Depuis la dernière mise à jour du plugin les cookies ne se régénèrent plus.
(NodeJS en version 12, et OS sous Buster, version 3.3.52 pour Jeedom).
Amazon vient de mettre en place 2sv (authentification en 2 étapes), es ce possible que cela puisse venir de là ?
Une petite idée ?
Merci
Alexa-Remote - Lancement de /var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js
[7/27/2020, 8:37:48 AM][INFO] :
[7/27/2020, 8:37:48 AM][INFO] : {API} ╔══════════════════════[Lancement Serveur]═════════════════════════════════════════════════════════
[7/27/2020, 8:37:48 AM][] : Alexa-Remote: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
[7/27/2020, 8:37:48 AM][] : Alexa-Remote: Use as Login-Amazon-URL: amazon.fr
[7/27/2020, 8:37:48 AM][] : Alexa-Remote: Use as Base-URL: alexa.amazon.fr
[7/27/2020, 8:37:48 AM][] : Alexa-Remote: No cookie given, generate one
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Use as Login-Amazon-URL: amazon.fr
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Use as Base-Amazon-URL: amazon.com
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Use as Accept-Language: fr-FR
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Proxy mode disabled
[7/27/2020, 8:37:49 AM][] : Proxy Init: reuse frc from former data
[7/27/2020, 8:37:49 AM][] : Proxy Init: reuse map-md from former data
[7/27/2020, 8:37:49 AM][] : Proxy Init: reuse deviceId from former data
[7/27/2020, 8:37:49 AM][] : Alexa-Cookie: Proxy-Server listening on port 43461
[7/27/2020, 8:37:49 AM][] : Alexa-Remote: Error from retrieving cookies
[7/27/2020, 8:37:49 AM][] : {API}: Error while initializing alexa
[7/27/2020, 8:37:49 AM][] : {API}: Error: You can try to get the cookie manually by opening http://undefined:43461/ with your browser.
Alexa-Remote - Lancement de /var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js
Alexa-Config - Lancement de /var/www/html/plugins/alexaapi/resources/initCookie.js
Alexa-Remote: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Alexa-Remote: Use as Login-Amazon-URL: amazon.fr
Alexa-Remote: Use as Base-URL: alexa.amazon.fr
Alexa-Remote: No cookie given, generate one
Alexa-Cookie: Use as Login-Amazon-URL: amazon.fr
Alexa-Cookie: Use as Base-Amazon-URL: amazon.com
Alexa-Cookie: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Alexa-Cookie: Use as Accept-Language: fr-FR
Alexa-Cookie: Proxy mode disabled
Proxy Init: loaded temp data store ass fallback former data
Proxy Init: reuse frc from former data
Proxy Init: reuse map-md from former data
Proxy Init: reuse deviceId from former data
[HPM] Proxy created: !/cookie-success -> https://alexa.amazon.com
[HPM] Proxy rewrite rule created: "^/www.amazon.com" ~> ""
[HPM] Proxy rewrite rule created: "^/alexa.amazon.com" ~> ""
Alexa-Cookie: Proxy-Server listening on port 3457
Alexa-Remote: Error from retrieving cookies
initCookie - Error: You can try to get the cookie manually by opening http://192.168.78.10:3457/ with your browser.
[2020-07-27 08:37:11][INFO] : Lancement Serveur pour Cookie - DEBUT deamonCookieStart
[2020-07-27 08:37:11][DEBUG] : ---- Lancement démon Alexa-API-Cookie sur port 3457 : nice -n 19 nodejs /var/www/html/plugins/alexaapi/resources/initCookie.js 192.168.78.10 amazon.fr alexa.amazon.fr
[2020-07-27 08:37:11][INFO] : Lancement Serveur pour Cookie - DEBUT deamon_info
[2020-07-27 08:37:11][INFO] : Test si serveur cookie lance
[2020-07-27 08:37:11][INFO] : Lancement Serveur pour Cookie - FIN deamonCookieStart
[2020-07-27 08:37:39][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-07-27 08:37:39][INFO] : Arrêt du service alexaapi
[2020-07-27 08:37:42][INFO] : Arrêt du service cookie
[2020-07-27 08:37:46][INFO] : Lancement du démon alexaapi
[2020-07-27 08:37:46][DEBUG] : Lancement démon alexaapi : nice -n 19 nodejs /var/www/html/plugins/alexaapi/resources/alexaapi.js http://192.168.78.10 amazon.fr alexa.amazon.fr jsYLmZ4iE1Bw0iilasWZbtsF2n1dNB2i 100
[2020-07-27 08:37:46][INFO] : Démon alexaapi lancé