Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I Cannot get Cart Using Store Front API because of Internal Error

I Cannot get Cart Using Store Front API because of Internal Error

upload
Shopify Partner
1 0 0

I get the following error when retrieving a cart in GraphQL in Shopify's StoreFrontApi.

 
{code: "INTERNAL_SERVER_ERROR", requestId: ""}
code
: 
"INTERNAL_SERVER_ERROR"
requestId
: 

message
: 
"Internal error. Looks like something went wrong on our end.\nRequest ID: (include this in support requests)."


Please let me know how to resolve this.

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 531

Hey @upload - would you be able to share the payload body/GraphQL query you're making (excluding any sensitive shop-related information) - we can't say for sure what may be happening here, but with a bit more investigation we can definitely look into this further. Are you just using a standard query like this one via the storefront API to retrieve a cart using its id?

Hope to hear from you soon - happy to keep looking into this. 

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

fsepulveda
Shopify Partner
3 0 1

Hi, i have the same problem.

I'm testing a custom app with php (using official php shopify library), when i call the storefront api for create a cart and add an item line I get the same error.
I'm using the same call of the example in this page https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/cart/manage#step-1-crea...

 

Obviously i change the product variant id for my store product id.

 

Can you help me?