Login fails with 500 error: "res.status is not a function" in admin-sh backend on default docker compose

On the default docker compose setup, I get an error on login:

  • The frontend shows “Failed to fetch”.

  • The backend returns an HTTP 500 error.

curl http://localhost:7507

<title>Error</title>
Internal Server Error

Checking the backend logs:

docker compose logs admin-sh

admin-sh-1 | {"t":"2026-06-07T22:34:20.479Z","level":"info","msg":"admin-sh listening","port":7507,"composeProject":"gainium-app"}
admin-sh-1 | {"t":"2026-06-07T22:34:20.488Z","level":"info","msg":"redis connect","role":"cmd"}
admin-sh-1 | {"t":"2026-06-07T22:34:20.491Z","level":"info","msg":"enabled_exchanges already present; skipping seed"}
admin-sh-1 | {"t":"2026-06-07T22:34:58.636Z","level":"error","msg":"unhandled error"}
admin-sh-1 | TypeError: res.status is not a function
admin-sh-1 |     at /app/dist/index.js:36:9
admin-sh-1 |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
admin-sh-1 |     at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)
admin-sh-1 |     at /app/node_modules/express/lib/router/index.js:286:9
admin-sh-1 |     at router.process_params (/app/node_modules/express/lib/router/index.js:346:12)
admin-sh-1 |     at next (/app/node_modules/express/lib/router/index.js:280:10)
admin-sh-1 |     at cors (/app/node_modules/cors/lib/index.js:188:7)
admin-sh-1 |     at /app/node_modules/cors/lib/index.js:224:17
admin-sh-1 |     at originCallback (/app/node_modules/cors/lib/index.js:214:15)
admin-sh-1 |     at /app/node_modules/cors/lib/index.js:219:13

Thank you for reporting this bug. We have received your report regarding the login issue with a 500 error and the “res.status is not a function” message in the admin-sh backend on the default docker compose setup. We will investigate this promptly and provide an update as soon as possible.

curl http://localhost:7507
Expect to return 500, there is no route for / GET

TypeError fixed in new version, though its not the reason of Failed to fetch

Can you check browser error, there might be cors errors

Is a CORS problem and default .env for docker dont have variables VITE_API_ENDPOINT, VITE_WS_URL
Thanks you

There are default values in docker compose.

But cors relate on CORS_ORIGIN .env