WASM islands: fix socket routing through hero_proxy (502 errors) #63
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?
Problem
Multiple WASM islands show "HTTP 502: Cannot connect to backend socket" or blank pages. The islands make HTTP requests through hero_proxy_ui to backend services, but the socket paths don't match.
Affected tabs
Root cause
WASM islands request paths like
/hero_aibroker/,/hero_books/etc. through hero_proxy_ui. The proxy strips the prefix and looks forhero_aibroker.sock,hero_books.socketc. But the actual sockets are namedhero_aibroker_server.sock,hero_books_server.sock.The entrypoint.sh creates some symlinks (hero_foundry, hero_osis, hero_indexer) but not all needed aliases.
Fix
Working sections (for reference)
Inspector, Proxy, Foundry UI, Embedder — these are embedded JS dashboards in server binaries, not WASM islands, so they don't go through the proxy socket routing.
Additional finding: Books sub-navigation blank
Hero Books main page loads correctly (4 libraries, 40 books). But clicking "Enter library" on any library card causes the page to go blank — only the "Books" title and dock remain.
This is a client-side routing issue within the Books WASM island — the sub-route (library detail view) fails to render. The backend is healthy (
/hero_books_server/healthreturns 200, status: degraded because embedder is not connected).Signed-off-by: mik-tf
Done
Fixed all WASM socket routing 502/404 errors. Every service now routes correctly through hero_proxy.
Fixes
servesubcommand, symlinkhero_aibroker.sock → hero_aibroker_ui.sockhero_auth_ui.sock → hero_auth_server.sockhero_foundry_ui.sock → hero_foundry_admin.sockbun runin TOML, not in profileFiles changed
Verification
make smoke: 55 passed, 0 failed — all proxy routes return 200Commits:
Signed-off-by: mik-tf