Skip to content

Recursion limit exceeded on deserialization #1573

@klefevre

Description

@klefevre

Hi,

I'm encountering an issue when using jsonrpsee::http_client::HttpClient to fetch large JSON responses that contain deeply nested structures. Currently, it seems impossible to handle these cases properly because the client internally relies on serde_json.

Since there’s no way to plug in a custom deserializer or configure serde_json to lift this restriction I’ve forked the repo and implemented a patch that disables the recursion limit. You can view the patch here: master...klefevre:jsonrpsee:master

This modification solves the issue for my use case, and I’d be happy to open a proper PR to contribute this upstream. However, I’m unsure about the best way to opt-in this feature.

I’d appreciate your guidance on how this should be integrated to align with the design and ergonomics of the project.

Best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions