Migrating from Shop-based token to User-based token

Migrating from Shop-based token to User-based token

mat_ory
Shopify Partner
9 0 1

Hi I am trying to move from a Shop-based token to a user-based token on a rails Shopify app

I followed the steps from: 

https://github.com/Shopify/shopify_app/blob/3ac5cc58ea3cb9e2f87a0fb257ea356f86bbefef/docs/shopify_ap...

 

However when I try to open the app from Shopify Admin I get an error message:

The application cannot be loaded, it may be misconfigured. Please contact the application author.

 

The logs in my app only show an attempt to OAuth, but without any error message or unusual logs

It all looks like its working in the logs, but Shopify is getting lost

 

Should I be doing anything that is not explicitly mentioned in the migration steps

 

Thanks in advance!

Reply 1 (1)

mat_ory
Shopify Partner
9 0 1

More details:

 

When I try opening the app from a dev store's Shopify Admin I get an error message:

First a 500 error page saying that the app tried too many redirects and suggesting to clear cookies (I obviously did and tried to open in a private tab) and then I am taken back to Shopify Admin with this error message:

The application cannot be loaded, it may be misconfigured. Please contact the application author.

 

In the app's server it looks like an OAuth flow is started, then attempted a second time, but then Shopify doesn't take me to the OAuth authorization page and just shows the error message

 

So there's something going on with redirects or some loop


Thanks in advance!