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

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

Open
xuht724 opened this issue May 6, 2024 · 2 comments
Open
Assignees

Comments

@xuht724
Copy link

xuht724 commented May 6, 2024

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"
  }
}
@salmad3 salmad3 added type:bug Something isn't working needs-triage labels May 9, 2024
@Pantani
Copy link
Collaborator

Pantani commented May 12, 2024

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

@Pantani
Copy link
Collaborator

Pantani commented Jun 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Discuss
Development

No branches or pull requests

3 participants