js-buy-sdk createCart error

Highlighted
New Member
1 0 1

Just following the basic get started guides and was able to build a client using domain and token. 

 

Once built, I'd like to create a cart using client.checkout.create() - unfortunately this throws an error stating.. The checkoutCreate mutation failed due to an unknown error...

 

image.png

 

Not only this but trying to get products using client.product.fetchAll() results in an array being returned with one object within the array -> {message: an unknown error has occured}

 

Any ideas?

1 Like
Highlighted
Shopify Staff
Shopify Staff
493 98 88

Hi @miketu926 

 

Can you confirm that you have your store linked properly? With a simple query you should be able to test this. It sounds like it may not be connected to Shopify correctly 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes