Shopify Embedded App 500 Error on New Store Creation

Hi everyone,

I’m facing a serious issue with my Shopify embedded app. Whenever I create a new Shopify development store and try to open the app, it gets stuck loading and eventually returns a 500 Internal Server Error.

What’s happening

  • The app works fine on some existing stores.

  • But on every newly created store, the embedded app fails to load.

  • Shopify admin keeps showing the loading screen:

    “Just a sec, I’m on it!”

Network Error

In Chrome DevTools → Network tab, I can see:

  • Request:

    GET /app?embedded=1&hmac=...
    
    
  • Status:

    500 Internal Server Error
    
    

Terminal Logs

My terminal shows:

[shopify-app/INFO] Authenticating admin request

GET /app?embedded=1&hmac=...
500 -- 2395 ms

Tech Stack

  • Shopify Remix App

  • Embedded App

  • Running locally with Shopify CLI

  • App Bridge enabled

What I Already Checked

  • App URL and Redirect URLs are correct

  • Shopify CLI is running properly

  • Authentication seems to start successfully

  • Existing stores sometimes work

  • Only new stores consistently fail

My Question

Has anyone faced this issue before with Shopify embedded apps on newly created stores?

Could this be related to:

  • session storage?

  • offline/online token issues?

  • missing shop records in DB?

  • App Bridge configuration?

  • Shopify API version changes?

  • iframe/session authentication?

Any guidance would be really appreciated because I’ve been stuck on this for a long time.

Thanks in advance :folded_hands: