Skip to content

Conversation

@RobertIndie
Copy link
Member

Fixes #1315

Motivation

Currently the go client will only throw an error without any detailed information when connection failed:

connection error

Modifications

  • Add detailed message when connection failed

Verifying this change

With this PR, the error message would be like:

failed to connect to broker: dial tcp [::1]:1234: connect: connection refused

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / GoDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@RobertIndie RobertIndie added this to the v0.15.0 milestone Dec 16, 2024
@RobertIndie RobertIndie self-assigned this Dec 16, 2024
@RobertIndie RobertIndie modified the milestones: v0.15.0, v0.16.0 May 15, 2025
@RobertIndie RobertIndie modified the milestones: v0.16.0, v0.17.0 Jul 29, 2025
@RobertIndie RobertIndie modified the milestones: v0.17.0, v0.18.0 Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When a connection fails, the Pulsar client should return a detailed exception instead of a generic "connection error."

1 participant