Getting internal server error on querying storeAvailability in Storefront graphQL API

{
      product(id: "gid://shopify/Product/<PRODUCT_ID>"){
        title
        variants(first: 10){
          edges{
            node{
              storeAvailability(first: 10){
                edges{
                  node{
                    location{
                      name
                    }
                  }
                }
              }
            }
          }
        }
      }
  }

I have tried the above graphQL query to get the location inventory details and I am getting the following error as the response:

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 4b004497-9eb0-4787-a445-41b50bac3523 (include this in support requests).",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "4b004497-9eb0-4787-a445-41b50bac3523"
      }
    }
  ]
}

How to resolve this issue

Hi Sudarshan,

Are you seeing this for every product, or just one specific product? Also, does your app have the unauthenticated_read_product_pickup_locations access scope, which is required for StoreAvailability?