Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: API GraphQL - Body missing or invalid

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