Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Osmosis (cosmos-sdk v0.46.10) GetNodeInfo transport error #361

Closed
Philipp-Sc opened this issue Mar 19, 2023 · 5 comments
Closed

Osmosis (cosmos-sdk v0.46.10) GetNodeInfo transport error #361

Philipp-Sc opened this issue Mar 19, 2023 · 5 comments

Comments

@Philipp-Sc
Copy link
Contributor

I think this is likely related to Proto-build fails for SDK 0.46 #318 due to the recent proto changes.

docker run fullstorydev/grpcurl osmosis-grpc.lavenderfive.com:443 cosmos.base.tendermint.v1beta1.Service/GetNodeInfo

works, but using cosmos-rust I get

status: Unknow, message: "transport error"

code:

cosmos_sdk_proto::cosmos::base::tendermint::v1beta1::service_client::ServiceClient::new(c).get_node_info(GetNodeInfoRequest{}).await    

full code can be found here

I will wait until #318 is fixed, if the issue persists there is something else going on.

@Philipp-Sc
Copy link
Contributor Author

It seems to be a different issue: GoAway(b"", FRAME_SIZE_ERROR, Library)

Not sure what it means.

[2023-04-02T08:21:40Z ERROR cosmos_rust_package::api::core::cosmos::channels] GetNodeInfoRequest failed for http://osmosis-grpc.lavenderfive.com:443: Status { code: Unknown, message: "transport error", source: Some(tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"", FRAME_SIZE_ERROR, Library) }))) }
[2023-04-02T08:21:40Z ERROR cosmos_rust_package::api::core::cosmos::channels] GetNodeInfoRequest failed for http://grpc-osmosis-ia.cosmosia.notional.ventures:443: Status { code: Unknown, message: "transport error", source: Some(tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"", FRAME_SIZE_ERROR, Library) }))) }
[2023-04-02T08:21:40Z ERROR cosmos_rust_package::api::core::cosmos::channels] GetNodeInfoRequest failed for http://osmosis.grpc.stakin-nodes.com:443: Status { code: Unknown, message: "transport error", source: Some(tonic::transport::Error(Transport, hyper::Error(Io, Custom { kind: BrokenPipe, error: "stream closed because of a broken pipe" }))) }
[2023-04-02T08:21:42Z ERROR cosmos_rust_package::api::core::cosmos::channels] Unable to establish a connection to http://osmosis.grpc.interchain.ivaldilabs.xyz:433: transport error
    
    Caused by:
        0: error trying to connect: tcp connect error: No route to host (os error 113)
        1: tcp connect error: No route to host (os error 113)
        2: No route to host (os error 113)

@Philipp-Sc
Copy link
Contributor Author

related issue #313

@tony-iqlusion
Copy link
Member

These kind of errors often indicate you're connecting to the wrong port

@Philipp-Sc
Copy link
Contributor Author

Hmm the endpoints are taken from the chain registry.
I tested the same endpoints using grpcurl and that worked fine, difficult to debug this error further..

@Philipp-Sc
Copy link
Contributor Author

Closing this issue, the solution was to use the https:// schema and add the tonic feature flag "tls-roots":

tonic = { version = "^0.8", features = ["transport","tls","tls-roots","tls-webpki-roots"] }

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

No branches or pull requests

2 participants