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.

Re: I seem to be unable to generate the "shop" token for my development store.

I seem to be unable to generate the "shop" token for my development store.

NihilVitae
Shopify Partner
4 0 2

In brief, the low-hanging fruit I am presently pursuing is to query my development store for products via one of Shopify's APIs. I am attempting to achieve this through a combination of the web browser (Chrome) and Postman. Nothing out of the ordinary, really. I have managed to successfully install a barebones test app in my development store and have the pieces necessary to properly form the URL by which the shop token may be acquired--i.e., `https://{shopName}.myshopify.com/admin/oauth/access_token?client_id={clientId}&client_secret={client.... The problem is that, when I make a request to this address (with the appropriate values interpolated into the URI), what is returned instead of the shop token is a page that reads:

 

The page you’re looking for could not be found
Please make sure the web address is correct.

 

According to this Shopify tutorial, the steps I've taken should return a shop token. It's entirely unclear just where things are breaking down. Here's what I can tell you.

 

1. The `shopName` value is correct.

2. I am retrieving the `clientId` and `clientSecret` values from the "App Setup" view of the Shopify Partners UI. They are correct.

3. I am retrieving the `code` value from the URL returned once my test app has been successfully installed in my test store.

 

Yeah, so, it's not clear just where things are breaking down. Even though I'm not using PHP, I'm basically following the steps described in the tutorial. Does anyone see where I might be introducing an error into the process?

Replies 2 (2)

theapemachine
Shopify Partner
16 1 3

Depending on what you do use, if not Php, I have seen the previous NodeJS Shopify-cli generated code return 404 by default, so even when there was an error in the code.

NisargPatel
Shopify Partner
1 0 0

Hi, Facing the same problem. Was there any update to this?