Problème Création Cookie plugin-alexaapi

Bonjour, j’ai des soucis depuis plusieurs jours avec l’installation du cookie sur le plugin. J’ai fait le tour des forums sans succès. J’ai bien suivi la documentation. L’installation du plugin et des dépendance se déroule sans soucis. J’ai essayer de réinstaller plusieurs fois le plugin et même la version béta. Je me retrouve toujours bloqué juste après l’authentification sur le pop up Amazon j’ai la page suivante qui s’affiche :

Ci dessous les logs :

Et l’état de mon répertoire data :

pi@raspberrypi:/var/www/html/plugins/alexaapi/resources/data $ ls -la
total 12
drwxr-xr-x 2 www-data www-data 4096 Jun 11 12:49 .
drwxr-xr-x 5 www-data www-data 4096 Jun 11 12:52 …
-rw-r–r-- 1 www-data www-data 73 Jun 11 12:49 .gitignore

Est ce qu’une âme charitable pourrait m’aider ?

Merci :slight_smile:

Je n’ai pas pu copier les logs car étant nouvel utilisateur la taille du message était trop importante.

Je précise que j’ai bien autorisé les cookies sur mon navigateur. J’ai essayé depuis plusieurs navigateurs différents et plusieurs machines / os différents

Salut @Dhopwe ,

Curieuse coincidence : je m’apprêtais à poster un message pour le même problème.

Pour ma part, je rencontre ce message depuis la réinstallation de JeeDom dans Docker avec réseau macvlan via l’excellent tuto de @Didier3L

Même problème sur la version stable et la version béta.

J’obtiens ça dans le fichier « alexaapi_cookie »:

Alexa-Remote: No cookie given, generate one
Alexa-Cookie: Use as Login-Amazon-URL: amazon.fr
Alexa-Config (alexa-cookie.js): amazonserver=amazon.fr
Alexa-Config (alexa-cookie.js): alexaserver=alexa.amazon.fr
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
[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.0.243:3457/ with your browser.
Router: / / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-KW2VVPJGTJ0AE040A232|1591869384019&t:1591869384022&adb:adblk_no"}
Alexa-Cookie: Initial Page Request: https://www.amazon.com/ap/signin?openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.client_id=device%3A482702022086386134087640173616757807614057124213173084866276463523413249564c5635564d32573831&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.oa2.response_type=token&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=fr_FR
Alexa-Cookie: Proxy-Request: GET /
Alexa-Cookie: Headers: {"cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-KW2VVPJGTJ0AE040A232|1591869384019&t:1591869384022&adb:adblk_no","accept-language":"fr-FR","accept-encoding":"gzip, deflate","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","user-agent":"AmazonWebView/Amazon Alexa/2.2.223830.0/iOS/11.4.1/iPhone","upgrade-insecure-requests":"1","connection":"close","host":"www.amazon.com"}
Alexa-Cookie: Headers: {"cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-KW2VVPJGTJ0AE040A232|1591869384019&t:1591869384022&adb:adblk_no; frc=KbMi6EG7sIW+O2seR5WPRskfnjtLGpWduQ9hX9vCQwv6Dm+M3vqE8V/9Ci8ui5XS9O63gEpQqQH1E5nDD3IcIiTwDChGLcPyqqXuQihRc1whs2jFuaUM5yct7+wjk4vQrmzLob/ivJ6bFuH2sb0bQHjFLfKEOD9DnRYTIue27UtBdMm+5g1NCoJzvR5ANVg+Yllft38R0DkQFYtfAZK8i9VaFl1rEkioJzhg0hXXAO+FA/L8AR2sKUsrLRCQq6zgQc99Q6+2BgulQAUpbdgrk+KIlAhCHw5VYNYFwnPi4LWe9m0nqOjmSW2FBIqEObWSKniGRZYauci5yGLpyiJ/tmxvpNTlRo2kDlNRU7dnneiqsC5LTeqsfWrNdEYt62G+8x8qiW9doTKqoun2GeavsiTa2M/FFHlAew==; map-md=eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==","accept-language":"fr-FR","accept-encoding":"gzip, deflate","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","user-agent":"AmazonWebView/Amazon Alexa/2.2.223830.0/iOS/11.4.1/iPhone","upgrade-insecure-requests":"1","connection":"close","host":"www.amazon.com"}
(node:8029) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Alexa-Cookie: Proxy Response from Host: www.amazon.com
Alexa-Cookie: MODIFIED Response Body to rewrite URLs
Router: /ap/uedata?ld&v=0.210427.0&id=6Z8KKJMGG8Q3WB2PSQFY&sw=2560&sh=1440&vw=480&vh=699&m=1&sc=6Z8KKJMGG8Q3WB2PSQFY&ue=1&bb=14&cf=61&be=70&fp=76&fcp=76&pc=266&tc=-513&na_=-513&ul_=-1591877915454&_ul=-1591877915454&rd_=-1591877915454&_rd=-1591877915454&fe_=-475&lk_=-475&_lk=-475&co_=-475&_co=-475&sc_=-1591877915454&rq_=-470&rs_=-45&_rs=-42&dl_=-37&di_=73&de_=73&_de=74&_dc=266&ld_=266&_ld=-1591877915454&ntd=-1&ty=0&rc=0&hob=0&hoe=1&ld=267&t=1591877915721&ctb=1&rt=cf:10-6-3-1-1-3-1__ld:16-8-3-1-3-5-1&csmtags=aui|aui:aui_build_date:3.19.8-2020-04-21|fls-na-amazon-com|adblk_no|csm-feature-touch-enabled:false&viz=visible:1&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=6Z8KKJMGG8Q3WB2PSQFY&aftb=1 / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://192.168.0.243:3457/","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-6Z8KKJMGG8Q3WB2PSQFY|1591877915467&t:1591877915526&adb:adblk_no"}
Router: /ap/uedata?at&v=0.210427.0&id=6Z8KKJMGG8Q3WB2PSQFY&ctb=1&m=1&sc=6Z8KKJMGG8Q3WB2PSQFY&pc=278&at=278&t=1591877915732&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=6Z8KKJMGG8Q3WB2PSQFY&aftb=1&ui=2 / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://192.168.0.243:3457/","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-6Z8KKJMGG8Q3WB2PSQFY|1591877915467&t:1591877915526&adb:adblk_no"}
Router: /www.amazon.com/ap/signin/130-2392653-9274308 / POST / {"host":"192.168.0.243:3457","connection":"keep-alive","content-length":"2493","cache-control":"max-age=0","upgrade-insecure-requests":"1","origin":"http://192.168.0.243:3457","content-type":"application/x-www-form-urlencoded","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","referer":"http://192.168.0.243:3457/","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:6Z8KKJMGG8Q3WB2PSQFY+s-6Z8KKJMGG8Q3WB2PSQFY|1591877917213&t:1591877917213&adb:adblk_no"}
Alexa-Cookie: Proxy-Request: POST /www.amazon.com/ap/signin/130-2392653-9274308
Alexa-Cookie: Headers: {"cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:6Z8KKJMGG8Q3WB2PSQFY+s-6Z8KKJMGG8Q3WB2PSQFY|1591877917213&t:1591877917213&adb:adblk_no","accept-language":"fr-FR","accept-encoding":"gzip, deflate","referer":"http://192.168.0.243:3457/","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","user-agent":"AmazonWebView/Amazon Alexa/2.2.223830.0/iOS/11.4.1/iPhone","content-type":"application/x-www-form-urlencoded","origin":"http://192.168.0.243:3457","upgrade-insecure-requests":"1","cache-control":"max-age=0","content-length":"2493","connection":"close","host":"www.amazon.com"}
Alexa-Cookie: Headers: {"cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:6Z8KKJMGG8Q3WB2PSQFY+s-6Z8KKJMGG8Q3WB2PSQFY|1591877917213&t:1591877917213&adb:adblk_no; frc=KbMi6EG7sIW+O2seR5WPRskfnjtLGpWduQ9hX9vCQwv6Dm+M3vqE8V/9Ci8ui5XS9O63gEpQqQH1E5nDD3IcIiTwDChGLcPyqqXuQihRc1whs2jFuaUM5yct7+wjk4vQrmzLob/ivJ6bFuH2sb0bQHjFLfKEOD9DnRYTIue27UtBdMm+5g1NCoJzvR5ANVg+Yllft38R0DkQFYtfAZK8i9VaFl1rEkioJzhg0hXXAO+FA/L8AR2sKUsrLRCQq6zgQc99Q6+2BgulQAUpbdgrk+KIlAhCHw5VYNYFwnPi4LWe9m0nqOjmSW2FBIqEObWSKniGRZYauci5yGLpyiJ/tmxvpNTlRo2kDlNRU7dnneiqsC5LTeqsfWrNdEYt62G+8x8qiW9doTKqoun2GeavsiTa2M/FFHlAew==; map-md=eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==","accept-language":"fr-FR","accept-encoding":"gzip, deflate","referer":"http://192.168.0.243:3457/","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","user-agent":"AmazonWebView/Amazon Alexa/2.2.223830.0/iOS/11.4.1/iPhone","content-type":"application/x-www-form-urlencoded","origin":"http://192.168.0.243:3457","upgrade-insecure-requests":"1","cache-control":"max-age=0","content-length":"2493","connection":"close","host":"www.amazon.com"}
Alexa-Cookie: Modify headers: Changed Referer
Alexa-Cookie: Modify headers: Delete Origin
Alexa-Cookie: Proxy Response from Host: www.amazon.com
Alexa-Cookie: MODIFIED Response Body to rewrite URLs
Router: /ap/uedata?ld&v=0.210427.0&id=6E2Q9NGZCFEZF7WCD9ZG&sw=2560&sh=1440&vw=480&vh=699&m=1&sc=6E2Q9NGZCFEZF7WCD9ZG&ue=1&bb=18&be=20&fp=37&fcp=37&pc=59&tc=-1151&na_=-1151&ul_=-24&_ul=-24&rd_=-1591877944898&_rd=-1591877944898&fe_=-1148&lk_=-1148&_lk=-1148&co_=-1148&_co=-1148&sc_=-1591877944898&rq_=-1144&rs_=-29&_rs=-27&dl_=-21&di_=23&de_=23&_de=23&_dc=58&ld_=58&_ld=-1591877944898&ntd=-1&ty=0&rc=0&hob=1&hoe=2&ld=59&t=1591877944957&ctb=1&rt=__ld:4-0-2-1-1-1-1&csmtags=fls-na-amazon-com|adblk_no&viz=visible:1&pty=AuthenticationPortal&spty=MobileSignInApplication:CookielessWarnedPage&pti=undefined&tid=6Z8KKJMGG8Q3WB2PSQFY&aftb=1 / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://192.168.0.243:3457/www.amazon.com/ap/signin/130-2392653-9274308","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-6E2Q9NGZCFEZF7WCD9ZG|1591877944916&t:1591877944919&adb:adblk_no"}
Router: /ap/uedata?at&v=0.210427.0&id=6E2Q9NGZCFEZF7WCD9ZG&ctb=1&m=1&sc=6E2Q9NGZCFEZF7WCD9ZG&pc=665&at=665&t=1591877945563&csmtags=csm-feature-touch-enabled:false&pty=AuthenticationPortal&spty=MobileSignInApplication:CookielessWarnedPage&pti=undefined&tid=6Z8KKJMGG8Q3WB2PSQFY&aftb=1 / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://192.168.0.243:3457/www.amazon.com/ap/signin/130-2392653-9274308","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-6E2Q9NGZCFEZF7WCD9ZG|1591877944916&t:1591877944919&adb:adblk_no"}
Router: /ap/uedata?at&v=0.210427.0&id=6E2Q9NGZCFEZF7WCD9ZG&ctb=1&m=1&sc=6E2Q9NGZCFEZF7WCD9ZG&pc=671&at=671&t=1591877945569&pty=AuthenticationPortal&spty=MobileSignInApplication:CookielessWarnedPage&pti=undefined&tid=6Z8KKJMGG8Q3WB2PSQFY&aftb=1&ui=2 / GET / {"host":"192.168.0.243:3457","connection":"keep-alive","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","accept":"image/webp,image/apng,image/*,*/*;q=0.8","referer":"http://192.168.0.243:3457/www.amazon.com/ap/signin/130-2392653-9274308","accept-encoding":"gzip, deflate","accept-language":"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"registerDevice=f3Cl4n1GBOZ2TXlQW5Ou0ExAC9I0QJTf-NB9jemaEfrZShiwOQyvaYJW6XTbrkOtL; jeedom_token=Qw5eunkIWfjVWg7VFiecRDWGtM6qKrXy; PHPSESSID=msckm89bas762gtf9u8n5olksl; sess_id=msckm89bas762gtf9u8n5olksl; csm-hit=tb:s-6E2Q9NGZCFEZF7WCD9ZG|1591877944916&t:1591877944919&adb:adblk_no"}

J’ai utlisé plusieurs navigateurs mais même problème.

Les droits sur le répertoire « data » sont les suivants:

root@jeedom:/var/www/html/plugins/alexaapi/resources/data# ls -la                                                  
total 12                                                                                                           
drwxr-xr-x 2 www-data www-data 4096 Jun 11 11:52 .                                                                 
drwxr-xr-x 5 www-data www-data 4096 Jun 11 11:55 ..                                                                
-rw-r--r-- 1 www-data www-data   73 Jun 11 11:52 .gitignore

Merci par avance pour votre aide,
Thierry

Hello,
J’ai le même pb mon serveur Jeedom est hébergé sur une VM de la Freebox Delta.
Sur la fenêtre de récupération des cookies, il pointe sur l’adresse IP local (192.168.0.48) de mon serveur Jeedom, est-ce normal ?
Merci pour votre aide.
image

Hello
Je suis dans le même cas avec la VM de la Freebox Delta mais aussi sur mes autres VM

@sigalou : as-tu une idée ? peut-on faire des contrôles pour aider a trouver la solution ?

merci
bonne journée

Bonjour
Je suis dans la même situation que vous, sur Freebox Delta

Bonjour tout le monde,

j’ai exactement le même problème. J’ai essayé sur plusieurs PC, tablettes, navigateur… rien ne fonctionne, toujours ce problème d’activation des cookies alors que c’est bien le cas.

Voici le fichier log si ça peut aider:

{Remote} ║ No cookie given, generate one
Alexa-Cookie: Use as Login-Amazon-URL: amazon.fr
Alexa-Config (alexa-cookie.js): amazonserver=amazon.fr
Alexa-Config (alexa-cookie.js): alexaserver=alexa.amazon.fr
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
[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 » ~> «  »
events.js:292
throw er; // Unhandled ‹ error › event
^
Error: listen EADDRINUSE: address already in use :::3457
at Server.setupListenHandle [as _listen2] (net.js:1313:16)
at listenInCluster (net.js:1361:12)
at Server.listen (net.js:1447:7)
at Function.listen (/var/www/html/plugins/alexaapi/resources/node_modules/express/lib/application.js:618:24)
at Object.initAmazonProxy (/var/www/html/plugins/alexaapi/resources/lib/proxy.js:302:22)
at Object.generateAlexaCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-cookie.js:346:21)
at AlexaRemote.generateCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:784:26)
at getCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:139:22)
at AlexaRemote.init (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:181:9)
at Object. (/var/www/html/plugins/alexaapi/resources/initCookie.js:11:7)
Emitted ‹ error › event on Server instance at:
at emitErrorNT (net.js:1340:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: ‹ EADDRINUSE ›,
errno: ‹ EADDRINUSE ›,
syscall: ‹ listen ›,
address: ‹ :: ›,
port: 3457
}

J’ai testé en version stable et beta, même problème.

@sigalou, je me permets de te taguer, as-tu une idée d’où viendrait le problème?

Serait-il possible de générer ce cookie manuellement et de placer le fichier au bon endroit dans le repertoire du pluggin dans jeedom pour contourner le problème?

Je te remercie d’avance pour ta réponse.

Bonjour,
J’ai moi aussi ce même problème.
Mon Jeedom est sur un docker sur mon NAS Synology, pour avoir accès à la page de configuration j’ai bien redirigé le port 3457 et modifié l’ip interne.

Merci d’avance pour une solution :+1:

Hello,
Quelqu’un pourrait nous aider ?
Merci d’avance

Petite question qui peut éventuellement aider, n’y a t’il pas moyen de créer et remplir le fichier json contenant les cookies manuellement ? Qui se trouve la si j’ai bien compris : /.../html/plugins/alexaapi/resources/data
Genre récupérer le schéma du json de la part de quelqu’un qui a réussi a le créer et le remplir avec nos valeurs retournés par amazon lors de la connexion (ou ceux enregistré dans notre navigateur).

Bonsoir,

Je pense être dans le même cas, effectivement depuis plusieurs jours le démon tombe et je tombe sur à même page au niveau des cookies.

Je tourne sur Raspberry 3B+ ssd en 4.0.56.

Dans l’attente d’une correction ou modification, d’avance merci :sweat_smile:.

alexaapi 5.txt (50,8 Ko) alexaapi_cookie.txt (226,1 Ko) alexaapi_dep.txt (32,1 Ko) alexaapi_node.txt (44,4 Ko)

Problème résolu en ce qui me concerne.

Je viens de modifier les 2 fichiers ci-dessous (version stable) :

  • alexa-cookie.js
  • proxy.js

J’ai incorporé quelques modifications effectuées par Apollon77 :

https://github.com/Apollon77/alexa-cookie/commit/6aa990205128c578f34cbcb396e682eabf996faf

Il faut déposer les fichiers dans le répertoire "plugins/alexaapi/resources/lib". Libre à vous de faire une sauvegarde de l’ancienne version.

Les fichiers sont en pièce jointe et suffixés en « .txt ». N’ouliez pas de supprimer l’extension :grin:

proxy.js.txt (15,5 Ko) alexa-cookie.js.txt (28,5 Ko)

Bonsoir @pippobimbo

Bien vu, Apollon77 a publié hier des modifs, tu as eu raison de regarder, les soucis sont donc chez ceux qui ont Node 14 donc visiblement, j’ai node 12.18 et je n’arrivais pas à reproduire les soucis.

Merci d’avoir vu la modif, je vais corriger sur le dépot.

Un très grand merci à toi, cela fonctionne. :smiley:
Ne pas oublier de supprimer ses cookies avant de faire la manip’. ça ne fonctionnait pas avant que je fasse ça.

Merci beaucoup !

Et bien je galère… :roll_eyes: Je n’arrive pas à supprimer ce message à la noix qui demande l’activation des cookies … :smirk:

Les cookies du navigateur ? J’ai supprimer et c’est pareil :unamused:

Vous avez quelle version ? beta ? stable ?

Personnellement au début en écrasant simplement les fichiers ça ne fonctionnait pas. J’ai : écrasé les fichiers, delete mes cookies du navigateur, redémarré carrément mon docker et c’est passé.
Avec la version stable

C’est étrange, j’aimerais bien comprendre mais j’y arrive pas à ce stade, je vais tout relancer pour voir