-
Notifications
You must be signed in to change notification settings - Fork 41
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
NATSTimeoutException when we supply a non existing or wrong cluster id #93
Comments
I have encountered this one as well and it can be somewhat difficult to track down if you are not aware of the importance of cluster id. However a NATSTimeoutException, IMO, is the correct exception. An error message saying that this could be because of the IP/Hostname, Port OR cluster id might help narrowing this down earlier. |
This issue seems to be a common one. Would something like a ClusterUnavailableException with the cluster name in the message sound reasonable? |
thanks for your answers guys |
Hi all, I created a PR for this, #111 , does this look like it'll help? After further thought, I didn't want to change the exception because that would be a breaking change in the API. |
yes it will diffenetly help and better than the previous exception |
Hi,
not sure if i m going to get my answer as i m not seeing a lot of activities around Nats Client using .net,
while i m trying to use Nats streaming server i start getting a misleading exception ( NATSTimeoutException )
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
at NATS.Client.Connection.request(String subject, Byte[] data, Int32 offset, Int32 count, Int32 timeout)
when i provided a wrong cluster id , is this the intent or just triggering the wrong exception
Thanks
The text was updated successfully, but these errors were encountered: