[storefront api] intermittent issue when getting variants using product query

Hello,

We are having an error on one of our app that is using the storefront api when trying to get two variants by title using the product query. Sometimes work and sometimes returns an error with no more details.

This one of the request id “dc09b2ca-6372-4b48-a1ed-718be820606a-1745252467” and the error says “INTERNAL_SERVER_ERROR” and here is the most recent request id “a23ef63a-1287-4184-9574-ca507486f33e-1746718846”.

here is the query:

query getProductById($id: ID!) {
    product(id: $id) {
        id
        title
        price1: variantBySelectedOptions(
            selectedOptions: [{ name: "Title", value: "price1" }]
        ) {
            id
            price {
                amount
                currencyCode
            }
        }
        price2: variantBySelectedOptions(
            selectedOptions: [{ name: "Title", value: "price2" }]
        ) {
            id
            price {
                amount
                currencyCode
            }
        }
    }
}

Could you help us getting more info about the error?

We have an open ticket from support with ID 56883043.

Thanks for your help in advance.

1 Like

Hey @rcastro :waving_hand: - thanks for all the info there. I was able to do some digging into our logs and we’ll take a look into this on our end. I’ll loop back with you here when I have some more info to share.

1 Like

Any info on this? I am having the same issue in one of the stores i manage.

Hello @Alan_G , thanks for looking into this. Have any updates? this issue is affecting several clients.
Let me know if you need more info.

thanks in advance.

Hi @Alberto_Abarzua @rcastro - thanks for waiting on my reply here. I can’t share too much as we are still investigating this internally, but we have made progress in identifying what might be causing the issue.

I’ll keep you folks up to date on any solutions/next steps here in this thread - thanks again for your patience :slight_smile:

1 Like

Hey @rcastro :waving_hand: just following up with an update - we may have resolved the issue for the original shop you reported the issue popping up on (for request ID dc09b2ca-6372-4b48-a1ed-718be820606a-1745252467), could you let us know if the error persists on that shop when you run the query?

If it’s still happening on any other shops, if you’re able to share those with me, just let me know here and I can open up a DM so we can resolve the issue on those other shops as well. (@Alberto_Abarzua - if you’re still seeing this too, just let me know and I’d be happy to DM with you as well :slight_smile: )

Thanks again for your patience on this folks!

Hey! @Alan_G , I am still seeing very high rates of internal server error responses at random times in just one of my stores.

This is the last one from just a minute ago that i replicated.

38.35 A [GraphQLClientError]: GraphQL errors:
38.35 Message: Internal error. Looks like something went wrong on our end.
38.35 Request ID: 2081ae18-ec13-44b4-b5df-cad7caf8dd25-1749059039 (include this in support requests).
38.35 Request ID: 2081ae18-ec13-44b4-b5df-cad7caf8dd25-1749059039
38.35 Code: INTERNAL_SERVER_ERROR

Hello @Alan_G , thanks for the update.
The query worked, we will check with the merchant and let you know if there is no more issues for that shop.

Here is a list of errors that we got today from other shops:

  • 79473519-836f-452f-a209-66b488615e3e-1749057921
  • 39fc0c61-7647-4cd6-903f-ef0cf39f4f3d-1749055526
  • 85d66b19-2ff1-4569-8b15-be9a5bb6c151-1749052742
  • 68eaf7b1-5ce1-430b-a413-339c1cf2ca7e-1749052297
  • a0207dda-796b-47ca-9f1e-306cfb0547af-1749051937
  • c9323244-e21b-4607-ad3f-68041d7774e7-1749051111
  • 15909805-b163-44c9-aa04-473a1bfdb58c-1749051013
  • 00a4157a-35f8-451c-89f6-60ee645f6117-1749050228
  • 5e848b90-d3a1-4aae-9722-85ad2e00b37a-1749049442
  • 6eaa76c3-b862-4838-bc95-5c86c6f6ec03-1749048861
    thanks in advance

Thanks @Alberto_Abarzua @rcastro - taking a look at those other examples now on my end here, I’ll loop back with you in the thread once I have more info to share.

Shopify’s support is really terrible. I’ve had this partial outage on my store for almost 1.5 months!!!

No resolution, useless responses, complete silence. Every time I reach out, I get no solution as if this weren’t a service critical outage, to the point I am close to migrating everything from Shopify to another provider.

At random times, I get consistent 500 Internal Server Errors, meaning not even exponential back off works. Periods of minutes where I get nothing but 500 errors. Then everything goes back to normal and support thinks the issue is solved…

Terrible!

Hi @Alberto_Abarzua - thanks for following up. I completely understand your frustration here. Having intermittent 500 errors affecting your store for this long is not an ideal experience for sure.

I noticed you have a support ticket open with my team, so I’ll help you out directly there. This is something our product team is aware of, and while I can’t guarantee anything specifically at this moment, I’m going to investigate this further today and speak with you via that ticket.

I’ll also follow up in this thread if I can share a solution that might help others experiencing similar issues.

Thanks again for your patience on this, we’ll get this looked into