From ae9f43bb3cc320dc624a029027ebbb8c4b1fd59e Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Thu, 11 Jun 2026 11:06:27 -0400 Subject: [PATCH] Don't include `IOException` messages in gRPC error responses --- .../textsecuregcm/grpc/ErrorMappingInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java index 2322956b9..68f60979d 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java @@ -53,11 +53,11 @@ public class ErrorMappingInterceptor implements ServerInterceptor { case ConvertibleToGrpcStatus e -> e.toStatusRuntimeException(); case UncheckedIOException e -> { log.warn("RPC {} encountered UncheckedIOException", call.getMethodDescriptor().getFullMethodName(), e.getCause()); - yield GrpcExceptions.unavailable(e.getCause().getMessage()); + yield GrpcExceptions.unavailable(); } case IOException e -> { log.warn("RPC {} encountered IOException", call.getMethodDescriptor().getFullMethodName(), e); - yield GrpcExceptions.unavailable(e.getMessage()); + yield GrpcExceptions.unavailable(); } case null -> { log.error("RPC {} finished with status UNKNOWN: {}",