Hi,
We are optimizing our client’s images and updating the optimized images using update product media graphql bulk query. It was all working fine until a week ago, when suddenly after uploading the optimized images - it started giving “Thumbnail failed to upload for YouTube video, please retry again.” error.
I did see someone else who is not related to our app also face the same issue. Do we need to change something in our app code to avoid the same?
Attaching the bulk query code below for reference :
await axios.post("https://" + shopify_domain + "/admin/api/2021-07/graphql.json", {
query: `mutation bulkOperationRunMutation($mutation: String!, $stagedUploadPath: String!) {
bulkOperationRunMutation(
mutation: $mutation
stagedUploadPath: $stagedUploadPath
) {
bulkOperation {
id
}
userErrors {
code
field
message
}
}
}`,
variables: {
"mutation": `mutation call($productId: ID!, $media: [UpdateMediaInput!]!) {
productUpdateMedia(productId: $productId, media: $media) {
media {
status
}
mediaUserErrors {
code
field
message
}
product {
id
}
}
}`,
"stagedUploadPath": key
}
}, {
headers: {
'Content-Type': 'application/json',
'X-Shopify-Access-Token': access_token
},
httpsAgent: agent
})