Hi,
I’m currently experiencing an unusual behaviour from the Shopify GraphQL API. I’m trying to upload a few hundred products using the bulk import API. In particular,
- The stagedUploadsCreate query works and returns the proper response;
- The form post to https://shopify-staged-uploads.storage.googleapis.com/ also works with no issues and returns the proper parameters;
However, once I start polling the upload status with the currentBulkOperation and the following query,
query {
currentBulkOperation(type: MUTATION) {
id
status
errorCode
createdAt
completedAt
objectCount
fileSize
url
partialDataUrl
}
}
I keep receiving this response:
{
"data": {
"currentBulkOperation": {
"id": "gid://shopify/BulkOperation/3439961145630",
"status": "EXPIRED",
"errorCode": null,
"createdAt": "2023-09-08T13:05:35Z",
"completedAt": "2023-09-08T13:05:40Z",
"objectCount": "0",
"fileSize": null,
"url": null,
"partialDataUrl": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 1,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 999,
"restoreRate": 50.0
}
}
}
}
which seems to be the actual status of more than a week ago. I don’t know why, but the MUTATION status seems to be stuck on the 8th of september no matter which mutation I’m running. On the other hand, if I run a currentBulkOperation on type “QUERY”, it works fine:
{
"data": {
"currentBulkOperation": {
"id": "gid://shopify/BulkOperation/3464387232030",
"status": "COMPLETED",
"errorCode": null,
"createdAt": "2023-09-20T07:29:04Z",
"completedAt": "2023-09-20T07:29:22Z",
"objectCount": "5149",
"fileSize": "657664",
"url": "<long url>,
"partialDataUrl": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 1,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 999,
"restoreRate": 50.0
}
}
}
}
This behavior doesn’t occur on my account, but on the accounts of some of our clients, so it’s even harder to debug.
Thank you very much for your time.