We develop an app that uses the Shopify API to help our customers track who has ordered swag from their internal Shopify stores.
We are running into an issue with exactly one customer in which the GraphQL API is not working. I can reproduce this issue very consistently no matter how I query the GraphQL API (using the Node.js SDK, using cURL on the command line, using Postman to make requests, etc). The error only occurs for this one customer, and not for our other customers. The error only occurs when using the GraphQL API; there are no errors with the REST API.
For the purposes of this post, I am going to use the Node.js SDK to demonstrate the error.
const shopify = shopifyApi({
apiSecretKey: '...',
apiVersion: ApiVersion.April23,
isCustomStoreApp: true,
adminApiAccessToken: '...',
isEmbeddedApp: false,
hostName: 'SHOPNAME.myshopify.com',
restResources,
});
const session = shopify.session.customAppSession('SHOPNAME.myshopify.com');
const client = new shopify.clients.Graphql({ session });
const queryString = `{
shop {
name
}
}`;
const response = await client.query({ data: queryString });
console.log(response);
For one of our customers, this code is consistently failing with:
[shopify-api/INFO] version 7.3.1, environment Node v18.16.0
Error: Received an error response (404 Not Found) from Shopify:
"Not Found"
If you report this error, please include this id: 8526b80d-4df6-46f9-8a08-6b6248d431e3
Summarizing some of what I’ve already tried:
- We confirmed that the API secret and the admin API access token are correct. (They also must be, since they work fine with the REST API.)
- We re-generated the admin API access token.
- I tried several different API versions, and all failed.
- I tried using cURL and Postman to hit the GraphQL API, in case it was an issue with the SDK. When I send a POST request to https://SHOPNAME.myshopify.com/admin/api/2023-04/graphql.json I am again able to reproduce the error with this particular customer, while other stores/other customers work fine.
- I created a brand-new store, went through the exact same steps as this customer did (choosing the same admin API scopes, the same webhook event version, etc) and am unable to reproduce the error on my brand-new store.
- On my brand-new store, I installed all of the same Apps that this particular customer has installed in their store. None of the apps appear to be causing this issue.
- I’ve also searched the forum and haven’t yet found any posts that have solved this particular issue for me.
Is there a way that someone on the Shopify support team can use the ID in the above error message to help me figure out what’s going on, and how to fix it? Thanks.