Issue with Reinstalling Shopify App Using Remix Template

Solved

Issue with Reinstalling Shopify App Using Remix Template

EWA
Shopify Partner
2 1 0

Hi everyone,

 

I’ve developed a Shopify app with a theme extension, using the Remix app template. Everything works fine initially, but I’ve encountered an issue after uninstalling and attempting to reinstall the app. Here’s what happens:


Screenshot 2024-12-20 at 16.12.14.png- Upon reinstallation, instead of the usual flow, the following link opens and results in a 404 Not Found error:

/store/<store_url>/apps/<app_name>

 

Additionally, the Shopify review team has flagged a potential issue with the app’s authentication flow.

 

My questions are:

1.Could the 404 error be related to an authentication issue during the reinstall process?

2.How should I address this issue to ensure a smooth reinstall experience and resolve the authentication concerns?

 

If anyone has faced a similar issue or has insights into handling reinstall authentication with the Remix app template, I’d greatly appreciate your guidance.

 

Thanks in advance!

Accepted Solution (1)
EWA
Shopify Partner
2 1 0

This is an accepted solution.

Thank you for your detailed response and assistance! I’ve identified the issue—it was related to access scopes. Initially, I assumed that no access scopes were required, but after reviewing the documentation, I discovered that at least one scope must be specified. After adding the necessary scope, the problem was resolved.

 

Once again, thank you for your help!

View solution in original post

Replies 2 (2)

juka_dev
Shopify Partner
3 1 1

Hi there!

 

From what you have shared it's hard to pinpoint the problem but here is what I think could be happening. The 404 error appears when you are trying to access something that doesn't exist. In this case, it means that you are trying to access an app from your Shopify store, that's not installed on your store. So, that means that the installation either didn't even happen or failed in the process.

 

There are a few reasons that come to my mind that could cause this:

 

  1. You may have misspelled your app name or app URL in either the .env file or in .toml file
  2. You may have some misconfigured logic in one of the loaders or actions in your remix files
  3. Are you using the Shopify-provided starter template? If you customized any of the code, there is a chance that the authentification is not going through, and as a reason, your app is not getting installed
  4. Are you using the new Shopify-managed authentication strategy?
  5. Did you try installing, deleting, and then installing your app on another development store?
  6. How do you currently install your app, since it has yet to be approved? 

Also, what do you mean when you say "reinstalling"? When you try to install the app, after already having it deleted once, do you get the first screen saying "You are about to install the app ..."

Jure Reljanovic
EWA
Shopify Partner
2 1 0

This is an accepted solution.

Thank you for your detailed response and assistance! I’ve identified the issue—it was related to access scopes. Initially, I assumed that no access scopes were required, but after reviewing the documentation, I discovered that at least one scope must be specified. After adding the necessary scope, the problem was resolved.

 

Once again, thank you for your help!