Skip to content

RPC does not work with optional parameter #2575

@NamesMT

Description

@NamesMT

What version of Hono are you using?

4.2.9

What runtime/platform is your app running on?

Node v20

What steps can reproduce the bug?

Declare multiple routes, include one route using optional parameter like /api/:a/:b?

What is the expected behavior?

RPC mode should work normally

What do you see instead?

RPC got fallback to match any string, with no known HTTP methods
image

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions