Je viens de tester aussi
je 'y arrive pas non plus
{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
[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:312:22)
at AlexaCookie.generateAlexaCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-cookie.js:367:25)
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.<anonymous> (/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
}
{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
[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:312:22)
at AlexaCookie.generateAlexaCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-cookie.js:367:25)
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.<anonymous> (/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
}
{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
[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:312:22)
at AlexaCookie.generateAlexaCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-cookie.js:367:25)
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.<anonymous> (/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
}
{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
[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:312:22)
at AlexaCookie.generateAlexaCookie (/var/www/html/plugins/alexaapi/resources/lib/alexa-cookie.js:367:25)
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.<anonymous> (/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
}
c’est normal qui est 2 points entre Alexa et amazon ?
« ^/alexa…amazon.com »
en passant il manque static à la méthode de la ligne 789 du fichier alexaapi.class.php
public function updateCmd ($forceUpdate, $LogicalId, $Type, $SubType, $RunWhenRefresh, $Name, $IsVisible, $title_disable, $setDisplayicon, $infoNameArray, $setTemplate_lien, $request, $infoName, $listValue, $Order, $Test) {
il faut écrire (merci à @Mips)
public static function updateCmd ($forceUpdate, $LogicalId, $Type, $SubType, $RunWhenRefresh, $Name, $IsVisible, $title_disable, $setDisplayicon, $infoNameArray, $setTemplate_lien, $request, $infoName, $listValue, $Order, $Test) {