Shopify graphql productVariantCreate internal server error

When I use shopify graphql productVariantCreate endpoint to create product variant, I will encounter internal server error if I add variant metafields to the variant.

"extensions": {
       "code": "INTERNAL_SERVER_ERROR",
        "requestId": "964db28b-52e9-457b-9be4-db18b6676b57"
     }

Is there any way to solve this? My metafield is actually queried from productVariant graphql.

1 Like