Skip to content

Commit

Permalink
Fix grpc end-of-stream mid-frame error by updating to grpc 1.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gr4cza committed Oct 28, 2024
1 parent 09c11a9 commit 60878ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ext {
revEmbeddedRedis = '0.6'
revEurekaClient = '2.0.2'
revGroovy = '4.0.9'
revGrpc = '1.57.2'
revGrpc = '1.66.0'
revGuava = '33.2.1-jre'
revHamcrestAllMatchers = '1.8'
revHealth = '1.1.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
import io.grpc.Metadata;
import io.grpc.Status;
import io.grpc.StatusException;
import io.grpc.protobuf.lite.ProtoLiteUtils;
import io.grpc.stub.StreamObserver;
import jakarta.annotation.Nonnull;

import static io.grpc.protobuf.ProtoUtils.metadataMarshaller;

public class GRPCHelper {

private final Logger logger;

private static final Metadata.Key<DebugInfo> STATUS_DETAILS_KEY =
Metadata.Key.of(
"grpc-status-details-bin",
ProtoLiteUtils.metadataMarshaller(DebugInfo.getDefaultInstance()));
"grpc-status-details-bin", metadataMarshaller(DebugInfo.getDefaultInstance()));

public GRPCHelper(Logger log) {
this.logger = log;
Expand Down

0 comments on commit 60878ca

Please sign in to comment.