[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