I am using GraphQL api to create variant for a product, and I kept running in to this error:
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 47948838-1972-4158-9a89-2c85ee548a0d-1721804614 (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "47948838-1972-4158-9a89-2c85ee548a0d-1721804614"
}
}
]
}
Here is my query:
mutation productVariantsBulkCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVariantsBulkCreate(productId: $productId, variants: $variants) {
productVariants {
id
selectedOptions{
value
}
title
image{
url
}
inventoryItem{
id
}
}
userErrors {
field
message
}
}
}
The store was built on 2024/07/05, and so was the product. Is it possible to due to the new product API? What’s the constraint of creating a variant now.
We are running an APP that has user productVariantBulkCreate
GraphQL mutation, would need to solve this issue if create variant for new product is an issue.