Shopify_app: Example app results in infinite loop

Created on 14 Mar 2018  路  6Comments  路  Source: Shopify/shopify_app

I created a new rails app following the instructions in the README. I have made no code changes.

As best I can tell, this is what's happening:

  1. Load app at https://[example].shopify.com
  2. App goes through auth process and is brought to the callback URL
  3. Callback redirects to home/index
  4. App displays contents outside of Shopify
  5. Shopify is reloaded in an attempt to embed the app
  6. We are brought back to step 2.

I'm looking for the right way to create an app and it is difficult when the examples don't work.

Can you please fix this?

bug

Most helpful comment

I don't believe the example app is intended to run out of the box, it simply serves as an example of how the generated application is architected.

The controllers in the example app folder were last updated over 2 years ago.

It's fairly simple to follow the documentation to generate a new application and run that instead.

I think the example folder should be nuked or regenerated as part of the deployment / release steps.

All 6 comments

what browser were you using?

I don't believe the example app is intended to run out of the box, it simply serves as an example of how the generated application is architected.

The controllers in the example app folder were last updated over 2 years ago.

It's fairly simple to follow the documentation to generate a new application and run that instead.

I think the example folder should be nuked or regenerated as part of the deployment / release steps.

Actually, I determined that it works fine if you disable the embedded app functionality.

For now we can look into modernizing the example app in a PR if anyone can spare the cycles, and I agree it should be regenerated as part of deployment/release. I can look into it (just the modernization) next week if nobody has by then.

Do you allow third party cookies in your browser? I have an embedded app, and when I disable third party cookies, it results in a redirect loop.

Example app no longer exists so this app is stale.

Was this page helpful?
0 / 5 - 0 ratings