GraphQL : message: "Network Error"

Hi, what is wrond with my GraphQL action ?

My URL is : https://{shop}.myshopify.com/admin/api/2021-07/graphql.json
I add good header :

  -H "Content-Type: application/graphql" \
  -H "X-Shopify-Access-Token: votre_token_d'accès_api" \

I dont understand…

Hi @thinkcloud :wave:

Apologies for the late reply.

A couple of questions for you:

  1. did you test the same request in a tool like Postman?
  2. can you share the full response from Shopify? For example, in a post in their community:

Hello @Joyce, the same request with Postman works.
I’m not sure about the good full responce, i get that :

Blockquote stack: “Error: Network Error at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.8e1719d9.js:1:120680) at _.onerror (https://editor-cdn.weweb.io/public/js/chunk-vendors.8e1719d9.js:1:115642) at XMLHttpRequest.sentryWrapped (https://browser.sentry-cdn.com/7.45.0/bundle.min.js:2:38971)”
message: “Network Error”
response: undefined

Can you take a look at the network tab in dev tools to see what request is getting sent to shopify? It’ll probably show in red because of the error. The URL or the headers in there may give you a lot of insight as to where the ball is getting dropped in the code.