What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Request from httpclient issue

Request from httpclient issue

mxhyj
Tourist
8 0 1

I am new here.

 

Tried to get shop info from the api, but didn't work, not sure what is wrong, any help would be great!!

 

command:

curl -X POST https://{Shop}.myshopify.com/admin/api/2020-04/graphql.json -H 'X-Shopify-Access-Token:{Password}'
-d ' {"query": "query {shop { name }}"}'

 

error got:

error.png

Reply 1 (1)

_JB
Shopify Staff (Retired)
836 100 223

Hey @mxhyj,

 

I can't tell much from looking at that error, but if I had to guess I'd say your client isn't populating the {Shop} variable correctly in the URL, since the error seems to mention a curly brace in the URL.

 

If you provide the X-Request-Id value from the response headers of your call, I can check our logs to confirm what we're seeing on our end.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog