When using the graphql api to pull orders from a store every so often get a response from another query rather than the one run. This does not happen all the time as we are pulling hourly it will happen 3 times a day and is not consistent.
For example:
Query orders and get back a single row for customers from the store using the admin API.
Hey @Pikka , this is really interesting. Most likely we are going to need to look in to our logs to best troubleshoot this. In order to do that, please reach out to one of our support teams, and make sure to reach out through the partner or merchant account that owns the app that is making the call.
If you can provide the x-request-id, timestamp, specific query that you’re making and any other relevant details, that will help us better investigate.
Hey @Pikka , you still may need to reach out to our support team so we can securely look in to the specifics.
Looking at this generally though, I do see that this is a bulk operations query.
Since you mentioned you’re getting the response from a previously run query instead of the current one I would make sure to take a look at how you are retrieving the data. For example, one thing to double check is that the ID of the currentBulkOperation you’re retrieving matches the ID that is returned in the response.
For further troubleshooting, you can also try a node query for your bulkOperation ID to see if the same URL is returned. It could look something like this:
{
node(id: “gid://shopify/BulkOperation/[BulkOperationID]”) {
… on BulkOperation {
status
errorCode
url
partialDataUrl
}
}
}
If both of those ID’s match, but you’re getting a jsonL content from a previous request or the same URL from a previous request, then we would for sure want to take a closer look. Reaching out through our Support is going to be best here for a more in-depth investigation!