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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

tomasdelaveau
Tourist
16 0 1

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 🙂

Replies 2 (2)

hassain
Shopify Staff (Retired)
624 104 189

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?

 

To learn more visit the Shopify Help Center or the Community Blog.

tomasdelaveau
Tourist
16 0 1

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