Invalid shop argument on shopify storefront

Invalid shop argument on shopify storefront

pankajb232
Shopify Partner
6 0 1

Hello guys, 
I keep on getting this error on my app whenever customer try storefront 
I don't know how and why this comes up 
Does anyone knows why this will happen 

Thanks in advance. 

 

 

2025-04-21T12:16:06.424739+00:00 app[web.1]: InvalidShopError: Received invalid shop argument
2025-04-21T12:16:06.424750+00:00 app[web.1]: at file:///app/node_modules/lib/utils/shop-validator.ts:39:13
2025-04-21T12:16:06.424757+00:00 app[web.1]: at Object.getOfflineId (file:///app/node_modules/lib/session/session-utils.ts:24:43)
2025-04-21T12:16:06.424758+00:00 app[web.1]: at createOrLoadOfflineSession (file:///app/node_modules/@shopify/src/server/authenticate/helpers/create-or-load-offline-session.ts:14:42)
2025-04-21T12:16:06.424759+00:00 app[web.1]: at Object.storefront (file:///app/node_modules/@shopify/src/server/unauthenticated/storefront/factory.ts:15:27)
2025-04-21T12:16:06.424760+00:00 app[web.1]: at FetchOffers (file:///app/build/server/index.js?t=1745037897000:7862:48)
2025-04-21T12:16:06.424760+00:00 app[web.1]: at loader$1 (file:///app/build/server/index.js?t=1745037897000:7997:26)
2025-04-21T12:16:06.424761+00:00 app[web.1]: at Object.callRouteLoader (/app/node_modules/@remix-run/server-runtime/dist/data.js:59:22)
2025-04-21T12:16:06.424761+00:00 app[web.1]: at handler (/app/node_modules/@remix-run/server-runtime/dist/routes.js:54:39)
2025-04-21T12:16:06.424761+00:00 app[web.1]: at actualHandler (/app/node_modules/@remix-run/router/router.ts:4922:14)
2025-04-21T12:16:06.424762+00:00 app[web.1]: at /app/node_modules/@remix-run/router/router.ts:4936:13
2025-04-21T12:16:06.426128+00:00 app[web.1]: OPTIONS /api/storefront/fetch?shop=www.absolutist.in&pid=8747943592172 500 - - 2.361 ms
2025-04-21T12:16:20.477675+00:00 heroku[router]: at=info method=OPTIONS path="/api/storefront/fetch?shop=$shop&pid=8747943592172" host=
Reply 1 (1)
pankajb232
Shopify Partner
6 0 1

Thanks @demarketingleem , Dming you