Skip to content

Conversation

JayiceZ
Copy link
Contributor

@JayiceZ JayiceZ commented Sep 17, 2025

Describe Your Changes

Please provide a brief description of the changes you made. Be as specific as possible to help others understand the purpose and impact of your modifications.

Checklist

The following checks are mandatory:

@JayiceZ JayiceZ marked this pull request as draft September 17, 2025 16:56
@JayiceZ JayiceZ marked this pull request as ready for review September 24, 2025 16:40
@JayiceZ JayiceZ changed the title [Draft] support grpc endpoint support grpc endpoint Sep 24, 2025
@jiekun jiekun self-requested a review September 28, 2025 09:00
@jiekun jiekun self-assigned this Sep 28, 2025

_, err = bb.ReadFrom(r.Body)
if err != nil {
WriteErrorGrpcResponse(w, GrpcInvalidArgument, fmt.Sprintf("cannot read request body: %s", err))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer https://github.com/grpc/grpc/blob/master/doc/statuscodes.md

I think we should use GrpcInternal .


err = checkProtobufRequest(bb.B)
if err != nil {
WriteErrorGrpcResponse(w, GrpcInvalidArgument, err.Error())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, the docs said that we should return GrpcInternal when Error parsing request proto

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

Successfully merging this pull request may close these issues.

2 participants