eclipse-vertx / eclipse-vertx/vertx-grpc

Returning gRPC response results in random stream error

Open
#210 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
53
Forks
36
Avg merge
5h 49m
Merged PRs (30d)
60

Description

### Version

5.0.4

### Context

We have just upgraded to vertx 5.0.4 using the GrpcIoServer
And we see this for quite a few requests:
```
java.lang.IllegalStateException: The stream is failed: INTERNAL
at io.vertx.grpc.common.impl.GrpcWriteStreamBase.writeMessage(GrpcWriteStreamBase.java:214)
at io.vertx.grpc.server.impl.GrpcServerResponseImpl.writeMessage(GrpcServerResponseImpl.java:214)
at io.vertx.grpc.common.impl.GrpcWriteStreamBase.endMessage(GrpcWriteStreamBase.java:179)
at io.vertx.grpc.common.impl.GrpcWriteStreamBase.end(GrpcWriteStreamBase.java:161)
```

We thought it was for responses that were streaming but we also see it for unary responses.
For now I am reverting back to the previous vertx version - I don't know what would cause this issue.

### Steps to reproduce

1. create a gRPC server
2. return a response
3. encounter the error

### Do you have a reproducer?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.