Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when channel isn't available #364

Open
v0idpwn opened this issue May 7, 2024 · 0 comments
Open

Error when channel isn't available #364

v0idpwn opened this issue May 7, 2024 · 0 comments
Labels

Comments

@v0idpwn
Copy link
Contributor

v0idpwn commented May 7, 2024

Describe the bug
Trying to use a closed channel with the gun adapter, I get the following error: {:error, %GRPC.RPCError{status: 2, message: ":down: :normal"}}

To Reproduce
Steps to reproduce the behavior:

  • Attempt to use a channel that finished due to a timeout or similar

Expected behavior

  • A more specific error, which would allow me to retry. Currently, I'm matching on the error message ":down: :normal", but I'd like to have a different status or a different error instead of %GRPC.RPCError{}, specially considering that maybe the connection process is down for other reason.

Versions:

  • OS: Linux
  • Erlang: 26.1.2
  • Elixir: 1.15.6-otp-26
  • mix.lock(grpc, gun, cowboy, cowlib):
grpc: v0.8.1
gun: v2.1.0
cowlib: v2.13.0

Additional context
Add any other context about the problem here.

@v0idpwn v0idpwn added the bug label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant