hero_biz cannot connect to hero_osis in container (no HTTP API bridge) #6
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_biz#6
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
hero_biz uses
reqwestHTTP client to connect toHERO0_BASE_URL(defaulthttp://127.0.0.1:3377/api/{context}/{domain}/rpc).In the hero_services container, hero_osis_server only listens on Unix domain sockets with raw stream JSON-RPC (not HTTP). There is no HTTP endpoint that serves the
/api/{context}/{domain}/rpcURL pattern.Current workaround
hero_biz is included in the container and starts, but cannot reach the backend.
HERO0_BASE_URLis set tohttp://127.0.0.1:6666(hero_proxy), but hero_proxy doesn't serve the/api/{context}/{domain}/rpcpattern either.Options to fix
hyper-unix-connectoror similar to talk directly to hero_osis_server.sock/api/{context}/{domain}/rpcroute to hero_proxy — route API calls to the appropriate hero_osis_server socketOption 2 or 3 would be the least invasive.
Context
Part of lhumina_code/home#3 (Demo Readiness).