Error (INTERNAL SERVER ERROR) on bulk operation

tomasseveryn
Tourist
6 0 2

Hi 
our app is downloading data from clients shopify account via api.
currently we are having issue with one of your clients -

on Friday the bulk operation returned error, and after several hours it worked properly,
Now we receive the same error again:
What is happening:
we create the bulk operation

that is created normally and show "RUNNING" as status.
After several minutes we receive
"status": "FAILED",
"errorCode": "INTERNAL_SERVER_ERROR",
"createdAt": "2020-12-13T11:55:04Z",
"completedAt": null,

the ID of the bulk operation is :
gid://shopify/BulkOperation/76937494688
can you please investigate why this is happening for this client?
Thank you very much

tomasseveryn
Tourist
6 0 2

Just an update,

query like this works for all other clients, only this client is having this issue.

Also this client is not failing all the time but for example 4 times it failed, then 2 times worked then 2 times failed

0 Likes
tomasseveryn
Tourist
6 0 2

The ID of the creation request was d1ba2f8d-d3f4-4da9-9324-dca45c2cd862

0 Likes
CalD
Shopify Staff
Shopify Staff
139 20 28

Hey @tomasseveryn

We’re aware of a rare, intermittent issue that this is caused by, although there isn’t a timeframe for a fix at the moment. I can recommend retrying/backoff any bulk ops that fail and I’ll post an update when one is available.

Can you post the full bulk op mutation you were trying to use if you still have it?

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
tomasseveryn
Tourist
6 0 2
mutation {
bulkOperationRunQuery(
query: """
{
orders {
edges {
node {
__typename
id
processedAt
lineItems {
edges {
node {
__typename
id
quantity
discountedUnitPriceSet {
shopMoney {
amount
}
}
totalDiscountSet {
shopMoney {
amount
}
}
taxLines {
ratePercentage
}
product {
vendor
}
variant {
id
sku
inventoryItem {
unitCost {
amount
}
}
}
}
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
0 Likes