Skip to content
Discussion options

You must be logged in to vote

Hi @andersonkxiass! I'm Dosu and I’m helping the orpc team.

The proxy pattern you’re using to forward body parser methods from c.req.raw to Hono’s c.req is the officially recommended way to integrate oRPC with Hono, including on Bun. This approach is documented in the official oRPC Hono adapter docs.

However, the input validation error (expected object, received undefined) is a known issue when using RPCHandler for direct/manual API calls (such as from API clients or tools). The RPCHandler is intended for use with oRPC’s generated clients, not for manual HTTP requests. To avoid this error, you have two options:

  1. Use a client-side oRPC client to make requests to your endpoint (recommended…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@unnoq
Comment options

Answer selected by unnoq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants