Internal server error on any endpoint

andres12
Tourist
5 1 3

I created a custom app from the Admin panel and generated an access token there too. I'm making this request:

curl -X POST https://{{shop-name}}.myshopify.com/api/2022-07/graphql.json \
-H 'Content-Type: application/graphql' \
-H 'X-Shopify-Storefront-Access-Token: {{my-token}}' \
-d '{ products(first:5) { edges { node { id } } } }'

And I'm receiving this response:

{"errors":"Internal Server Error"}

 If I change the token I receive no response, so I assume the token is right.

Reply 1 (1)

andres12
Tourist
5 1 3

I've just changed the endpoint to:

https://{{shop-name}}.myshopify.com/api/graphql.json

and it worked, but I'd like to specify the API version