Admin dashboard serves the web app copy and shows empty data (RPC 405) #13
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_planner#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Clicking Admin in the web app opens a blank page with no data.
Cause:
/hero_planner/admin/serves a copy of the normal web app instead of the admin dashboard. That copy calls the wrong RPC path (/hero_planner/admin/rpc/rpc), which returns 405, so no data loads.Expected: Admin should open the real admin dashboard (Overview / API / Docs / Settings) and use the correct RPC path (
/hero_planner/rpc/).Likely fix: the installed admin binary is stale/misbuilt (serving the web app), or its route is misconfigured. Rebuild/reinstall the admin binary and confirm it serves the admin dashboard.
Root cause
The admin dashboard was disabled via
skip = trueincrates/hero_planner_admin/service.toml, so noadmin.sockwas ever created. The web app still showed an Admin link to/hero_planner/admin/. With no admin socket present, that path fell through to a copy of the end-user web UI, whose data calls resolved to/hero_planner/admin/rpc/rpcand returned HTTP 405 — so every list came back empty. The "empty admin page" was therefore not the admin dashboard at all, but a broken fallback.Fix
Re-enabled the admin service by removing
skip = truefromservice.toml(main@847b0e9;developmentalready had it removed). With the flag gone,hero_planner_adminis registered in the build/deploy lifecycle again and bindsadmin.sock, so the router serves the real ops dashboard (Overview / API / Docs / Settings) instead of the broken fallback.Verified the dashboard loads correctly against a live backend. Takes effect on the next redeploy.