mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 09:32:36 -05:00
[GH-ISSUE #1422] Initial setup fails with 404 - Web UI sends API requests to wrong port #1901
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stlas on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1422
Bug Description
When attempting to create the initial server admin account through the Web UI, the request fails with a 404 error. The Web UI incorrectly sends API requests to port 8080 (Web UI port) instead of port 3000 (API port).
Steps to Reproduce
http://server:8080Expected Behavior
API request should go to
http://server:3000/api/v1/auth/set-server-adminActual Behavior
API request goes to
http://server:8080/api/v1/auth/set-server-admin(wrong port)Environment
Additional Context
Token: xmxfh6yjpyd95zx9so0qh3ed6y39tbamPUT http://server:8080/api/v1/auth/set-server-admin 404 (Not Found)Workaround Attempts
Suggested Fix
The Next.js frontend should be configured to send API requests to the correct port (3000) or use relative URLs that get properly proxied.
Config Used
This makes initial setup impossible without modifying the deployment or using workarounds.
@Pallavikumarimdb commented on GitHub (Sep 6, 2025):
The issue most likely coming from how the UI choosing the API URL. Right now it compares the browser port with server.nextPort (3002), but in your setup the browser only sees 8080 from the mapping 8080:3002. Since those don’t match, the UI falls back to http://server:8080/api/..., which explains the 404.
As a temporary workaround you can try exposing the UI on the same port inside and outside the container (3002:3002).
This looks like a bug in the client logic for mapped ports @oschwartz10612 .
@github-actions[bot] commented on GitHub (Sep 21, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@github-actions[bot] commented on GitHub (Oct 5, 2025):
This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.