Skip to content

Access via HTTPS not working #45

@httpsUser

Description

@httpsUser

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions