Skip to content

Conversation

@bobrik
Copy link
Contributor

@bobrik bobrik commented Oct 7, 2025

Here's how the error looks before this change:

status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error"

And here it is after:

status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error", source: tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"ivan_says_hello", ENHANCE_YOUR_CALM, Remote) }))

The latter gives the user a lot more context about the issue.

Here's how the error looks before this change:

```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error"
```

And here it is after:

```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error", source: tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"ivan_says_hello", ENHANCE_YOUR_CALM, Remote) }))
```

The latter gives the user a lot more context about the issue.
Copy link
Collaborator

@tottoto tottoto left a comment

Choose a reason for hiding this comment

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

Thanks!

@tottoto tottoto enabled auto-merge (squash) October 29, 2025 21:56
@tottoto tottoto merged commit 36a8a8e into hyperium:master Oct 29, 2025
20 checks passed
alexanderrilee pushed a commit to alexanderrilee/tonic that referenced this pull request Oct 29, 2025
Here's how the error looks before this change:

```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error"
```

And here it is after:

```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error", source: tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"ivan_says_hello", ENHANCE_YOUR_CALM, Remote) }))
```

The latter gives the user a lot more context about the issue.

Co-authored-by: tottoto <tottotodev@gmail.com>
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