cli icon indicating copy to clipboard operation
cli copied to clipboard

Fail to query state: error reading server preface: http2: frame too large

Open xuht724 opened this issue 1 year ago • 1 comments

Describe the bug The bug has been issued but closed without any available method to fix.

According to https://docs.ignite.com/clients/typescript, I learn and operate step by step, and catch an error, that is "connection error: desc = "error reading server preface: http2: frame too large", from the following snippet

{
  "code": 14,
  "message": "connection error: desc = \"error reading server preface: http2: frame too large\"",
  "details": []
}

const balances = await client.CosmosBankV1Beta1.query.queryAllBalances( 'cosmos13xkhcx2dquhqdml0k37sr7yndquwteuvt2cml7' ); Please tell me how to solve it.

What version are you using? mac os operation system, m3 Mac book air

Ignite CLI version:		v28.3.0
Ignite CLI build date:		2024-03-20T15:31:07Z
Ignite CLI source hash:		159abdca88605ed82cb4aabd52618db91069b7af
Ignite CLI config version:	v1
Cosmos SDK version:		v0.50.5
Your OS:			darwin
Your arch:			arm64
Your Node.js version:		v21.5.0
Your go version:		go version go1.22.2 darwin/arm64
Your uname -a:			Darwin MacBook-Air-3.local 23.3.0 Darwin Kernel Version 23.3.0: Thu Dec 21 02:29:41 PST 2023; root:xnu-10002.81.5~11/RELEASE_ARM64_T8122 arm64
Your cwd:			/Users/xuhaotian/code/example
Is on Gitpod:			false

It should be noted that the error only happened on my Mac, I do not meet the error when using linux server.

Besides, if I use grpcurl to access grpc service directly, The result is normal.

grpcurl -plaintext \
    -d '{"address":"cosmos1j264kngzq7fpsuz8hdq0dtwzqmnukzfr7gnjxl","denom":"stake"}' \
    localhost:9090 \
    cosmos.bank.v1beta1.Query/Balance


{
  "balance": {
    "denom": "stake",
    "amount": "100000000"
  }
}

xuht724 avatar May 06 '24 08:05 xuht724

@xuht724, we can't reproduce the issue. Is it possible to share the repo code?

Pantani avatar May 12 '24 23:05 Pantani

@xuht724 any updates? can you try it using ignite from the main branch?

Pantani avatar Jun 04 '24 17:06 Pantani

@xuht724 I will close the issue because we don't have more updates. Feel free to open it if the error persists

Pantani avatar Jun 25 '24 13:06 Pantani