Skip to content

fix(mint): return RPC errors for closed connections and cancelled requests - #598

Open
yordis wants to merge 1 commit into
elixir-grpc:masterfrom
yordis:yordis/fix-mint-transport-errors
Open

yordis wants to merge 1 commit into
elixir-grpc:masterfrom
yordis:yordis/fix-mint-transport-errors

Conversation

@yordis

@yordis yordis commented Sep 26, 2026

Copy link
Copy Markdown
Contributor
  • The Mint adapter reports a dropped connection or a cancelled request as a bare string, while the Gun adapter surfaces transport failures as %GRPC.RPCError{}, so callers pattern matching on RPCError crash depending on which adapter is configured.
  • The gRPC status code spec defines a client that cannot reach the server as UNAVAILABLE, which lets callers apply their usual retry policy instead of special-casing adapter strings.
  • Follows the direction of fix(mint): return raw connect errors, not strings #584, which made the connect path stop returning strings.

…uests

Signed-off-by: Yordis Prieto <yordis.prieto@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.

1 participant