You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: