ShopifyBuy js API returning 404

New Member
2 0 0

I am trying to debug a 404 issue for a product using the ShopifyBuy client api. The product is always returning 404 and I am unable to understand why.

The code below is where the issue is happening. The variable productId has a valid id for an active product in the Shopify store but client.fetchProduct returns 404. 


var productId ="shopify-id");
client.fetchProduct(productId).then(function (fetchedProduct) {"product", fetchedProduct);


Request URL:[productId]

Has anyone seen this issue before? 


Replies 0 (0)