infinite authentication loop in node dev app

jonv2
Shopify Partner
2 0 0

I created a nodejs shopify dev app using the CLI and went through all the steps. When going to the app link (ngrok), the authentication is stuck in an infinite loop. Here is what the terminal reads:

 

backend | [shopify-api/INFO] Creating new session | {shop: ..., isOnline: false}
backend | [shopify-api/INFO] Registering webhooks | {shop: ...}

 

[followed by the part below, which is in an infinite loop]

 

backend | [shopify-app/INFO] Running ensureInstalledOnShop
backend | [shopify-app/INFO] App is installed and ready to load | {shop: ...}
backend | [shopify-app/INFO] Running validateAuthenticatedSession
backend | [shopify-app/INFO] Running ensureInstalledOnShop
backend | [shopify-app/INFO] App is installed and ready to load | {shop: ...}
backend | [shopify-app/INFO] Request session has a valid access token | {shop: ...}
backend | [shopify-app/INFO] Running validateAuthenticatedSession

 

Tried this on chrome and edge, same issue in both. Any idea how to fix this?

Replies 3 (3)
ShopifyDevSup
Shopify Staff
Shopify Staff
1202 190 419

Hey @jonv2 - the best place to get assistance with this would be by opening an issue in the Shopify CLI repo on GitHub. If you haven't already opened an issue there and don't see any currently open issues that seem to be related, I'd recommend doing so with as much detail as possible, including any images and examples. 

Hope this helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jonv2
Shopify Partner
2 0 0

Will do. Thank you!

sirev
Shopify Partner
15 4 2