osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
105 stars 30 forks source link

h2 protocol error: http2 error: connection error detected: frame with invalid size #122

Closed iboss-ptk closed 10 months ago

iboss-ptk commented 1 year ago

The following error happens when the network endpoint requires TLS

Error: Account can't be initialized

Caused by:
    0: status: Unknown, message: "h2 protocol error: http2 error: connection error detected: frame with invalid size", details: [], metadata: MetadataMap { headers: {} }
    1: transport error
    2: http2 error: connection error detected: frame with invalid size
    3: connection error detected: frame with invalid size

suspect missing tonic/tls feature here:

https://github.com/cosmos/cosmos-rust/blob/3f7ec00098ac673ef8d982d7c363df535ac8dfa8/cosmos-sdk-proto/Cargo.toml#L24-L30

dzmitry-lahoda commented 1 year ago

same for me.

btw our centaurid daemon works ok with endpoint

name = ''
gas_price = '0.025ppica'
gas_adjustment = 1.3
account_prefix = 'centauri'

[networks.testnet]
chain_id = 'banksy-testnet-3'
network_variant = 'Shared'
#grpc_endpoint = 'https://grpc-t.composable.nodestake.top:443'
rpc_endpoint = 'https://rpc-t.composable.nodestake.top:443'

tested with and without port

(devenv) bash-5.2$ nix run .#beaker -- wasm  store-code cw_xc_gateway  --signer-mnemonic "$CI_COSMOS_MNEMONIC" --network testnet
warning: Git tree '/home/dz/github.com/ComposableFi/composable' is dirty
Error: Account can't be initialized

Caused by:
    0: status: Unknown, message: "h2 protocol error: http2 error: connection error detected: frame with invalid size", details: [], metadata: MetadataMap { headers: {} }
    1: transport error
    2: http2 error: connection error detected: frame with invalid size
    3: connection error detected: frame with invalid size

https://nodestake.top/composable

checked that CI_COSMOS_MNEMONIC has ppica amounts

when grpc enabled, other error

(devenv) bash-5.2$ nix run .#beaker -- wasm  store-code cw_xc_gateway  --signer-mnemonic "$CI_COSMOS_MNEMONIC" --network testnet
warning: Git tree '/home/dz/github.com/ComposableFi/composable' is dirty
Error: Account can't be initialized

Caused by:
    0: status: Unknown, message: "transport error", details: [], metadata: MetadataMap { headers: {} }
    1: transport error
    2: connection error: stream closed because of a broken pipe
    3: stream closed because of a broken pipe
(devenv) bash-5.2$ 
iboss-ptk commented 10 months ago

This should be fixed in 0.1.7.