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: organizationIdappIdX-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.
I contact Shopify support (endless emails), but they were unable to explain or answer the issue, although I doubt if anyone from the dev team even received this information at all.
Thanks.