Skip to content

Conversation

@PedroGuerraPT
Copy link
Contributor

@PedroGuerraPT PedroGuerraPT commented Nov 13, 2025

Summary

When users encounter the gRPC error keepalive ping failed to receive ACK within timeout, the CLI now replaces the technical error message with a clear, user-friendly message that directs them to troubleshooting documentation.

The fix adds error detection in two places:

  • wrapBuildError: Catches errors with direct gRPC status access
  • rewriteFriendlyErrors: Catches wrapped errors as a fallback

Before

Error: rpc error: code = Unavailable desc: keepalive ping failed to receive ACK within timeout

After

Connection to Depot runner lost.

For troubleshooting steps, visit: https://depot.dev/docs/container-builds/troubleshooting#error-keep-alive-ping-failed-to-receive-ack-within-timeout

Test plan

  • Manually test that the error message is replaced with the user-friendly version when keepalive errors occur
  • Verify existing error handling still works for other error types
  • Confirm the change applies to both depot build and depot bake commands

When users encounter the "keepalive ping failed to receive ACK within timeout"
error, the CLI now appends a link to the troubleshooting documentation to help
them resolve the issue.
Instead of appending to the technical gRPC error, replace it with a clear
explanation that mentions BuildKit shutdown and common causes (resource
starvation/OOM).
@PedroGuerraPT PedroGuerraPT changed the title Add helpful documentation link for keepalive ping errors Replace technical keepalive error with user-friendly message Nov 13, 2025
Use simpler "Connection to Depot runner lost" message that focuses users
on the troubleshooting documentation.
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