[hero_planner admin/web] live RPC posts bare /api/rpc; spec mandates /api/{domain}/rpc #19
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#19
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?
The admin "Live peer call" and the connection-status indicator post JSON-RPC to bare
/api/rpc(sharedwindow.rpc,rpc_url = {base}/api/rpc). The backend serves the single domain at/api/main/rpc(perhero_sockets.mdthe scheme is/api/{domain}/rpc). Live calls return-32000 Backend unavailableand the UI shows "backend down" (screenshot).Follow-on to the earlier
rpc_urlfix (which moved it off the dead/rpc-peer): the value is now/api/rpcbut still not domain-scoped. Planner can set its ownrpc_urlto the resolved/api/main/rpc, but the shared admin panes (api_docs/jobs/logs) also hardcode bare/api/rpc— see the hero_lib issue.Fixed on
developmentin7456769.The admin now derives
rpc_urlfrom the resolved domain ({base}/api/main/rpc), matchinghero_sockets.md's/api/{domain}/rpcscheme, instead of the bare/api/rpc. Live RPC — the overview "Call ping" and the connection-status indicator — now succeed.Verified via the hero_router tunnel: indicator green, live
Call ping->true, 0 console errors.Remaining (separate): the shared api-docs "Try" button still posts bare
/api/rpc— that's the sharedhero_lifecyclecomponent, tracked in #151 (hero_lib).