Envoi de la commande avec réponse : connection close
Restart du deamon (appuis sur le bouton play pour reboot le deamon dans la config) sans faire de génération de cookie. J'ai remplacé les réponses du server Alexa par *réponse ok* dans le log pour que ce soit plus courtAlexa-API: *Server is already listening on port 3456 *
Alexa-API: *******************************************
Alexa-API: Alexa.Notifications.SendMobilePush
Alexa-API: device: REDMINOTE6PRO
Alexa-API: text: Test Jeedom
Alexa-Remote: No authentication check needed (time elapsed 560612)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"customerId\":\"A376FE26P0GPPW\",\"notificationMessage\":\"Test Jeedom\",\"alexaUrl\":\"#v2/behaviors\",\"title\":\"Jeedom\"},\"type\":\"Alexa.Notifications.SendMobilePush\"}}","status":"ENABLED"}
Alexa-Remote: Response: No/Invalid JSON
HTTP/1.1 0 x-amzn-RequestId: eee8c932-4982-11e9-a48a-3351de78be2b
Access-Control-Allow-Origin: https://alexa.amazon.fr
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Mon, 18 Mar 2019 13:37:10 GMT
Connection: close
Alexa-API: Alexa.Notifications.SendMobilePush: Error: no JSON
Renvoi de la commande et la ça fonctionneAlexa-Config (alexaapi.js): amazonserver=amazon.fr
Alexa-Config (alexaapi.js): alexaserver=alexa.amazon.fr
Alexa-Config (alexa-remote.js): this._options.amazonPage=undefined
Alexa-Config (alexa-remote.js): amazonserver=amazon.fr
Alexa-Config (alexa-remote.js): alexaserver=alexa.amazon.fr
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: cookie was provided
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"authentication":{"authenticated":true,"canAccessPrimeMusicContent":false,"customerEmail":"bouleracing@gmail.com","customerId":"A376FE26P0GPPW","customerName":"Christophe Godichal"}}
Alexa-Remote: Authentication checked: true
Alexa-Remote: No authentication check needed (time elapsed 2)
Alexa-Remote: Sending Request with {"host":"alexa-comms-mobile-service.amazon.com","path":"/accounts","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: *réponse ok*
Alexa-Remote: No authentication check needed (time elapsed 365)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/devices-v2/device?cached=true&_=xxx","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: *liste des devices ==> ok*
Alexa-Remote: No authentication check needed (time elapsed 1508)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/wake-word?_=xxx","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: *réponse ok*
Alexa-Remote: No authentication check needed (time elapsed 1920)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/notifications?cached=true&_=xxx","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: * réponse ok*
Alexa-API - New cookie saved to:/var/www/html/plugins/alexaapi/resources/data/alexa-cookie.json
Alexa-API: *********************************
Alexa-API: * Server listening on port 3456 *
Alexa-API: *********************************
Si ça peut aider...Alexa-API: Alexa.Notifications.SendMobilePush
Alexa-API: device: REDMINOTE6PRO
Alexa-API: text: Test Jeedom
Alexa-Remote: No authentication check needed (time elapsed 131671)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"customerId\":\"A376FE26P0GPPW\",\"notificationMessage\":\"Test Jeedom\",\"alexaUrl\":\"#v2/behaviors\",\"title\":\"Jeedom\"},\"type\":\"Alexa.Notifications.SendMobilePush\"}}","status":"ENABLED"}
Alexa-Remote: Response: No body