Infinite redirect loop on embedded app using Embedded App SDK

This bug happens intermittently as you can see in this video: https://share.getcloudapp.com/wbuk7rDw

This bug seems to be related to this JS from Shopify: https://share.getcloudapp.com/Jru76veB

Context:

  • the app has thousands of people using it. So far I only found it happening to 1 of them;

  • the app was implemented using the shopify_app gem (v 11.3) and the Embedded App SDK;

Things I’ve already tried/checked:

  • googling for this error;

  • making sure I hadn’t overwritten any code from the gem and then updated it which could cause some bugs;

  • the bug is reproducible in different browsers, both on anonymous navigation and not;

  • I’ve reviewed the Embedded App SDK config and also the ;

  • I made sure we are using and enforcing SSL everywhere;

3 Likes

Hi @yogodoshi ,

Does your app utilize the Embedded App SDK functionality of “remoteRedirect”? If so, can you verify that your app has implemented and is using this function correctly? In the past I have seen that issues with calling the remoteRedirect function (i.e. now waiting before the App has initialized and is ready before calling it) has led to infinite redirect issues to occur.

As well, I would recommend that if you are making any changes or updates to your app, it probably would be beneficial to update from the Shopify Embedded App SDK to the new client-side library of the Shopify App Bridge. The Shopify App Bridge has many new features not available to the EASDK, allows for a better developing experience, and all new features going forward will only be available through the Shopify App Bridge.

Does your app utilize the Embedded App SDK functionality of “remoteRedirect”?

Nope, not calling that anywhere.

I would recommend that if you are making any changes or updates to your app, it probably would be beneficial to update from the Shopify Embedded App SDK to the new client-side library of the Shopify App Bridge

Planning to do that in the future ?