-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Even though you are able to set the port to 443, the plain use of this package wont work via HTTPS, because the XMLRPC-Client is only invoked with "isSecure" false.
Quick fix by exchanging the client yourself:
var xmlrpc = require('xmlrpc'); // for Magento 1.9 https fix
const Magento1 = require('magento');
var magento = new Magento1({
host: 'your.host',
port: 443,
path: '/api/xmlrpc/',
login: 'your_username',
pass: 'your_pass'
});
var isSecure = true;
// IMPORTANT FIX: for https to work, exchange client
if (isSecure) {
magento.client = xmlrpc.createSecureClient(magento.config);
}
johnferrie, manobi and LiamKarlMitchell
Metadata
Metadata
Assignees
Labels
No labels