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

error reading server preface: http2: frame too large #4242

Closed
793383996 opened this issue Jul 11, 2024 · 2 comments
Closed

error reading server preface: http2: frame too large #4242

793383996 opened this issue Jul 11, 2024 · 2 comments

Comments

@793383996
Copy link

rpc error: code = Unavailable desc = last connection error: connection error: desc = "error reading server preface: http2: frame too large"'

Creating a new API service and encountering an exception when calling RBC, with the environment version being 1.23.

@kevwan
Copy link
Contributor

kevwan commented Jul 13, 2024

You might need to set MaxMsgSize of gRPC.

svr.AddOptions(grpc.MaxSendMsgSize(...))
svr.AddOptions(grpc.MaxRecvMsgSize(...))

@793383996
Copy link
Author

Thx
The cause of this problem is port reuse but no error warning was reported. It has been solved. Thank you

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