Skip to content

cmd/micro gateway HTTP->RPC proxy: Endpoint handling via URL parsing is not implemented - #4879

Merged
asim merged 3 commits into
micro:masterfrom
alex-dna-tech:master
Aug 6, 2026
Merged

cmd/micro gateway HTTP->RPC proxy: Endpoint handling via URL parsing is not implemented#4879
asim merged 3 commits into
micro:masterfrom
alex-dna-tech:master

Conversation

@alex-dna-tech

Copy link
Copy Markdown
Contributor

@asim add new tag to rebuild binaries

The gateway only rendered the /api explorer page; any /api/{service}/{endpoint}
path fell through to 404. Add a proxy that resolves the endpoint from the
registry, checks scopes, and forwards the request body to the RPC client.
Accepts both /api/{service}/{method} and /api/{service}/{pkg}/{method} forms.
The initial record used a 150ms expiry read back immediately after a
bbolt write. Under -race/-cover on a loaded runner, the fsync'd write
or instrumented read can exceed 150ms, so the record has already
expired and Read("Hello") returns ErrNotFound, failing the test early.

Widen the first block to the same 1s expiry / 2s sleep pattern used by
the sibling blocks since micro#3789/micro#3828. The pre-expiry read stays well
inside 1s; the post-expiry read comfortably exceeds it.
@asim
asim merged commit a6d4272 into micro:master Aug 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants