Skip to content

[Bug]: Reverse proxy error when upgrade shopify/cli from 3.69.1 to 3.84.1 for Expressjs app (Invalid path /?embedded=.....) #6364

@NguyenQuangHuy-Harry

Description

@NguyenQuangHuy-Harry

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

It should proxy from tunnel url to localhost:8080.

Actual behavior

Image

Verbose output

Verbose output
13:37:43 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:43.603Z socket.io-admin emit stats
13:37:43 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:43.603Z socket.io-redis publishing message
of type 3 to socket.io#/admin#
13:37:43 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:43.605Z socket.io-parser encoding packet
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":27.77813425,"client
sCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","socke
tsCount":0}]}],"nsp":"/admin"}
13:37:43 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:43.605Z socket.io-parser encoded
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":27.77813425,"client
sCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","socke
tsCount":0}]}],"nsp":"/admin"} as 2/admin,["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"up
time":27.77813425,"clientsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0
},{"name":"/admin","socketsCount":0}]}]
13:37:43 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:43.605Z socket.io-adapter
[0218b39434a7e6ab] ignore message from self

──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ (d) Dev status │ (a) App info │ (s) Store info │                                                    (q) Quit

✅ Ready, watching for changes in your app

› (g) Open GraphiQL (Admin API) in your browser
› (p) Preview in your browser

Preview URL: https://harry8888.myshopify.com/admin/oauth/redirect_from_cli?client_id=74ee652f154c461aca77d4054117b354
GraphiQL URL: http://localhost:3457/graphiql
2025-09-08T06:37:43.707Z: 
Reverse HTTP proxy error - Invalid path: /?embedded=1&hmac=820a5f7c91fccf246511eefbe2535a158c7b7714041c0393ff0a148c148fac42&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvaGFycnk4ODg4&id_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczpcL1wvaG
13:37:45 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:45.604Z socket.io-admin emit stats
13:37:45 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:45.604Z socket.io-redis publishing message
of type 3 to socket.io#/admin#
13:37:45 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:45.606Z socket.io-adapter
[0218b39434a7e6ab] ignore message from self
13:37:45 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:45.606Z socket.io-parser encoding packet
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":29.779204125,"clien
tsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","sock
etsCount":0}]}],"nsp":"/admin"}
13:37:45 │               web-backend │ PageFly Backend-0  | 2025-09-08T06:37:45.606Z socket.io-parser encoded
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":29.779204125,"clien
tsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","sock
etsCount":0}]}],"nsp":"/admin"} as 2/admin,["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"u
ptime":29.779204125,"clientsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount"
:0},{"name":"/admin","socketsCount":0}]}]
13:37:47 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:47.604Z socket.io-admin emit stats
13:37:47 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:47.605Z socket.io-redis publishing message
of type 3 to socket.io#/admin#
13:37:47 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:47.606Z socket.io-adapter
[0218b39434a7e6ab] ignore message from self
13:37:47 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:47.606Z socket.io-parser encoding packet
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":31.779546334,"clien
tsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","sock
etsCount":0}]}],"nsp":"/admin"}
13:37:47 │               web-backend │ [1] PageFly Backend-0  | 2025-09-08T06:37:47.606Z socket.io-parser encoded
{"type":2,"data":["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"uptime":31.779546334,"clien
tsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount":0},{"name":"/admin","sock
etsCount":0}]}],"nsp":"/admin"} as 2/admin,["server_stats",{"serverId":"Harry.local","hostname":"Harry.local","pid":5310,"u
ptime":31.779546334,"clientsCount":0,"pollingClientsCount":0,"aggregatedEvents":[],"namespaces":[{"name":"/","socketsCount"
:0},{"name":"/admin","socketsCount":0}]}]
13:37:49 │               web-backend │ [1] Page  ```

</details>

### Reproduction steps

1. Run shopify app dev for a express js app

### Operating System

Mac OD

### Shopify CLI version (`shopify --version`)

3.84.1

### Shell

_No response_

### Node version (run `node -v` if you're not sure)

_No response_

### What language and version are you using in your application?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions