I’m using genql to execute a BulkOperationRunQuery with the following code:
const bulkOperation: BulkOperationRequest = {
...everything,
};
const userErrors: UserErrorRequest = {
field: true,
message: true,
};
const currentBulkOperationFields: QueryRootRequest = {
currentBulkOperation: {
...bulkOperation,
},
};
const query = /* GraphQL */ `
{
customers {
edges {
node {
id
firstName
lastName
email
phone
}
}
}
}
`;
const customersMutation: MutationRequest = {
bulkOperationRunQuery: [{ query }, { bulkOperation, userErrors }],
};
const client = createGenqlClient({ shopifyDomain, accessToken });
const { bulkOperationRunQuery } = await client.mutation(
customersMutation,
);
The bulk starts, and for some seconds his status is RUNNING, but after few seconds my bulk fails with the following:
[remix] {
[remix] completedAt: null,
[remix] createdAt: '2022-12-16T07:29:18Z',
[remix] errorCode: 'INTERNAL_SERVER_ERROR',
[remix] fileSize: null,
[remix] id: 'gid://shopify/BulkOperation/1737663086651',
[remix] objectCount: '0',
[remix] partialDataUrl: null,
[remix] query: '\n' +
[remix] ' {\n' +
[remix] ' customers {\n' +
[remix] ' edges {\n' +
[remix] ' node {\n' +
[remix] ' id\n' +
[remix] ' firstName\n' +
[remix] ' lastName\n' +
[remix] ' email\n' +
[remix] ' phone\n' +
[remix] ' }\n' +
[remix] ' }\n' +
[remix] ' }\n' +
[remix] ' }\n',
[remix] rootObjectCount: '0',
[remix] status: 'FAILED',
[remix] type: 'QUERY',
[remix] url: null,
[remix] __typename: 'BulkOperation'
[remix] }
This is happening since yesterday. What is happening here? I’m using the latest API version (2022-10).