MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
946 stars 278 forks source link

Trying to use this for dev shop, Redirects to /password, MaxRedirectsError #488

Closed drmanhatin closed 3 years ago

drmanhatin commented 3 years ago

-it works in seperate file e.g.:

const Shopify = require('shopify-api-node');

const shopify = new Shopify({
  shopName: 'ss',
  accessToken: 'ss'
});

(async function () {
  const shop = await shopify.shop.get();
  console.log(shop);
})().catch(console.error);

But it does not work in my main NodeJS project. It returns a MaxRedirectsError. Probably conflicting with other packages as I've read on other issues. When trying to debug GOT, I compared the difference between the requests being made. There was only one difference:

Working request: [Symbol(request)]: [Function: request]

Broken request: [Symbol(request)]: [Function (anonymous)] { __agent_base_https_request_patched__: true }

Any clues on how I could try to debug this?

drmanhatin commented 3 years ago

Caused by other library https://github.com/AzureAD/passport-azure-ad/issues/545