Skip to content

Jsonrpsee Version Bump causes build errors for project using reth as an SDK #16228

Closed
@developeruche

Description

@developeruche

Describe the bug

After the version bump for Jsonrpsee, When using RETH as an SDK, developers experience a build error.

Compiling reth-rpc-builder v1.3.12 (https://github.com/paradigmxyz/reth.git?branch=main#6c188475)
error[E0432]: unresolved import `jsonrpsee::http_client::RpcService`
 --> /Users/gregg/.cargo/git/checkouts/reth-e231042ee7db3fb7/6c18847/crates/rpc/rpc-builder/src/auth.rs:5:66
  |
5 |     http_client::{transport::HttpBackend, HeaderMap, HttpClient, RpcService},
  |                                                                  ^^^^^^^^^^
  |                                                                  |
  |                                                                  no `RpcService` in the root
  |                                                                  help: a similar name exists in the module: `rpc_service`
  |
  = help: consider importing one of these structs instead:
          crate::RpcService
          jsonrpsee::async_client::RpcService
          reth_ipc::server::RpcService

For more information about this error, try `rustc --explain E0432`.
error: could not compile `reth-rpc-builder` (lib) due to 1 previous error

Steps to reproduce

Steps to reproduces this error.

  1. Start up a new project using reth as a dep (any already existing project would be just fine)
  2. run this build command, and you will encounter a build error.

Node logs

Compiling reth-rpc-builder v1.3.12 (https://github.com/paradigmxyz/reth.git?branch=main#6c188475)
error[E0432]: unresolved import `jsonrpsee::http_client::RpcService`
 --> /Users/gregg/.cargo/git/checkouts/reth-e231042ee7db3fb7/6c18847/crates/rpc/rpc-builder/src/auth.rs:5:66
  |
5 |     http_client::{transport::HttpBackend, HeaderMap, HttpClient, RpcService},
  |                                                                  ^^^^^^^^^^
  |                                                                  |
  |                                                                  no `RpcService` in the root
  |                                                                  help: a similar name exists in the module: `rpc_service`
  |
  = help: consider importing one of these structs instead:
          crate::RpcService
          jsonrpsee::async_client::RpcService
          reth_ipc::server::RpcService

For more information about this error, try `rustc --explain E0432`.
error: could not compile `reth-rpc-builder` (lib) due to 1 previous error

Platform(s)

Mac (Apple Silicon)

Container Type

Other

What version/commit are you on?

branch: main
commit: latest (6c18847)

What database version are you on?

default

Which chain / network are you on?

none

What type of node are you running?

Archive (default)

What prune config do you use, if any?

none

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dependenciesPull requests or issues that are about dependenciesA-sdkRelated to reth's use as a libraryC-bugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions