Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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.
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