API GraphQL - Body missing or invalid

Kundun12
Visitor
2 0 0

Hello

I am calling several Shopify stores via a GraphQL call such as this one: "query{productVariants(first: 2, query: "sku:JUPE-COCO-S") {edges {cursor node { id sku price}}}}"

On most of the stores I get the expected data, but on some I get the following error:
"[errors] => stdClass Object ( [Body missing or invalid] => Required parameter missing or invalid"

could you tell me why on some stores I get this error? Is there a configuration to do on the stores to allow GraphQL calls?

Thanks for your help

Translated with www.DeepL.com/Translator (free version)

Reply 1 (1)

Kundun12
Visitor
2 0 0

I find the solution it was because I'm using for these the public url and not the shopify url