Skip to content

ResourceExhaused exception does not log actual response size/maximum size setting #1962

Description

@victormarante

Hi,

I recently integrated towards an external gRPC server, and started receiveing a lot of
Grpc.Core.RpcException: Status(StatusCode="ResourceExhausted", Detail="Received message exceeds the maximum configured message size.")
Currently, I see no way to determine the actual response size, in order to determine the best course of action. Is there a way to enable this, or to log the response size prior to exception being thrown?

Package versions:

<ItemGroup>
   <PackageReference Include="Google.Protobuf" Version="3.21.9" />
   <PackageReference Include="Grpc.Net.Client" Version="2.49.0" />
   <PackageReference Include="Grpc.Net.ClientFactory" Version="2.49.0" />
</ItemGroup>

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions