ensureInstalledOnShop goes into infinite loop

Hello

I have downloaded the latest Shopify CLI 3 App using the command, I have installed one of my Shopify stores and it’s working fine.

From the partner Dashboard, I have disabled the embedded App option, Now App is not loading in stores and it’s goes into an infinite loop.

23-05-22 08:35:13 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:18 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:22 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:26 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:32 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:37 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:42 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:47 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:51 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop
2023-05-22 08:35:56 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop

Please suggest what sort of changes need to be made for App work.

hi, I am also getting same error. did you able to found anything? please mail me on dharmikvalani57@gmail.com

@Divy_tatva and @dharmikvalani did you found any solution for this as I am also facing the same issue?

Yes @ansariafroz720 I found that the configuration was not properly made. I have added a session storage DB and properly configure it. so Now it’s working well.

Please ensure that,

  1. you are getting correct shop info and validating properly,

  2. store it in your session storage by using shopify app express package: https://www.npmjs.com/package/@shopify/shopify-app-express

The package is all you need to work

Thanks @dharmikvalani for prompt reply. But could you share you shopify.js file code as I have made the changes as you said but still it is the same. So if you could share your code I could compare what’s wrong or what am I missing