Internal error. Request ID: 29e634db-c496-494d-adc9-62c2924d5f0f

New Member
3 0 0

Hi all,

I'm trying to post a "productVariantCreate" mutation to my store and is not working. The other mutation ("productCreate") works fine so is definitely not a problem with the connection to the store.

 

This is the body of the post:

 

"mutation {
      productVariantCreate(input: {
        id: \"#{gid}\",
        sku: \"#{variant.sku}\",
        price: \"#{variant.price}\"
      }) {
        product {
          id
        }
      }
    }"

where gid = gid://shopify/Product/4458873847945, variant.sku = 123456789, price = 100.0

I'm getting the following message after attempting the post:

"Internal error. Looks like something went wrong on our end.\nRequest ID: 29e634db-c496-494d-adc9-62c2924d5f0f (include this in support requests)."

Please help me solve this issue :)

0 Likes
Highlighted
Shopify Staff
Shopify Staff
382 53 60

Hey @tomasdelaveau ,

 

Looking into the platform logs on our end for this Request ID, it seems that this error was thrown by the Exception of "invalid id". Can you please check to ensure that the Product ID you entering into this mutation is in the correct format and has the correct ID value?

 

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

0 Likes
Highlighted
New Member
3 0 0

Hey @hassain , the value for the ID was fine, the problem was that I was using "id" instead of "productId" as the field.

0 Likes