I am trying to use MONEI/Shopify-api-node: Node Shopify connector sponsored by MONEI (github.com) library, to get orders from my shopify store.
My code is as follows
const Shopify = require(“shopify-api-node”);
const shopify = new Shopify({
shopName: “shop.XX.com”,
apiKey: “XXXX”,
password: “XXXXX”,
apiVersion: “2022-10”,
});
const test = await shopify.order.list();
console.log(test);
But I am getting the following error
RequestError: Hostname/IP does not match certificate’s altnames: Host: shop.XX.com.myshopify.com. is not in the cert’s altnames: DNS:*.myshopify.com, DNS:myshopify.com