AI broker dashboard: /rpc 404 on every JSON-RPC call #129
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker#129
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?
Opening the AI broker dashboard (
/hero_aibroker/ui/) produces a console wave of 11+ HTTP 404 errors:Root cause
hero_router has a sibling-shortcut that rewrites
POST /<svc>/ui/rpcinto a call to<svc>/rpc.sock. The aibroker server stopped binding a top-levelrpc.sockafter the per-domain split — it now bindsadmin/rpc.sock,chat/rpc.sock,models/rpc.sock, etc. Hero_router can't find the top-level socket and 404s.The dashboard's single
rpc()JS helper calls methods spanning multiple namespaces (admin, models, chat, embedder, ai.*), so a flat alias to one sub-socket isn't enough.Repro
/hero_aibroker/ui/in any browser./hero_aibroker/ui/rpc.Expected
JSON-RPC calls reach the matching per-domain sub-socket and return a real result (or a clean JSON-RPC error envelope for unimplemented methods).
Fixed in
0d90081a27. Awaiting CI before closing.CI green on
0d90081a27— closing.