A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hey there,
Remember the 500("Unexpected system error") error we all got a few months ago when trying to use the SPA (Shopify partners API)?
Well... now it appears to be inconstantly and unfortunately, Shopify still do not supply any answer for that.
So I'm trying the power of this community, please tell me I'm stupid or blind because I miss something, I'll thank you for that.
Use Case:
Calling SPA with https://partners.shopify.com/{organizationId}/api/2022-04/graphql.json with the same parameters: organizationId*appId*X-Shopify-Access-Token
The only variable I change is "first" - playing with that, cause this is the only thing I found that effects this lovely error.
Until 3 (first:3) I get 200 response and all good,
4 or more is getting a 500 error.
X-Requested-Id (with 3) |
12d8ee63-01cb-493b-a830-b7dd0d7107e2
X-Requested-Id (with 4) |
1714670a-b3f6-4166-a537-a9bb4b8535d4
This is the simple request body:
{
app(id: "gid://partners/App/{appId}"){
name
events(first: {first}
) {
pageInfo{
hasNextPage
hasPreviousPage
}
edges{
cursor
node{
... on UsageChargeApplied{
charge {
amount {
amount
}
id
name
test
}
}
... on AppSubscriptionEvent{
charge {
amount {
amount
}
billingOn
id
name
test
}
}
shop{
id
myshopifyDomain
}
occurredAt
type
}
}
}
}
I remember that when this original error appeared, when we changed the "first" variable from 100 to 50, sometime we got 200 response, so it seems that there are some unsolved issues with this API.
Same situation here. Pinged support, I also have an automatic system to ping them and send the x-request-id via email everytime we get an error, but they don't need it now.
On my side, it happens only in one partner account, the others seem to work fine
Yeah, it's the same thing here, there are specific partners account that don't work, we are trying now to create a new SPA key to those account to see if that's change anything for the better.
Anyone found a workaround for this open BUG?
I'm still having issues with this, even when trying to retrieving data per single shop, it seems like the Shopify partners API is not stable...