I use the shopify-api-node library like this -
const shopifyapi = new Shopify({ shopName: store.name, autoLimit: true, apiVersion: '2020-01', accessToken: store.token, }); const shopifyShopData = await shopifyapi.shop.get();
But I I keep getting an error HTML response which is being converted to JSON by the library and the error I see from my side is
Unexpected token < in JSON at position 3 in "https://shopname.myshopify.com/admin/api/2020-01/shop.json"
Is this a problem with the library/API or am I doing something wrong here?
Hey @ajayvardhan,
Seems to be working OK on my end - are you using the latest version of the library? Any chance you can catch a request ID from the response headers?
User | Count |
---|---|
13 | |
12 | |
8 | |
8 | |
5 |