Offline access Admin Api requests returns html with scripts instead json response

Offline access Admin Api requests returns html with scripts instead json response

Hellogark
Shopify Partner
4 0 0

I'm using offline access token OAuth and i wan't to get all the products of a store with postman, but i get an html with scripts with a link instead the espected json response. So when paste the link into the browser i got into the account selection page, once i select the account y got redirected to the unavilable shopify page like in the pic. I don't know why is trying to have access to the account when i grant these permissions in scope: read_products,write_products,read_orders,write_orders.unavilable.PNG

The token is supoused to be permanent and i can't handle this kind of response from my backend

Replies 2 (2)

Hellogark
Shopify Partner
4 0 0

Well, i've tried to get all products from my backend instead from postman directly and i'm able to get them, somehow it doesn't work with postman

Anthony27
Shopify Partner
1 0 0

Yeah its just Postman. I struggled with it forever (kept getting an authetnicated reponse via Postman) then it worked as soon as I sent it from my backend.