I'm new to NATS and I have taken over an almost finshed application in NetCore 5.0. When I'm startning the application a Connection is set to an docker NATS server and this properties are set in appsettings.
"NatsSettings": {
"Url": "nats://localhost:4222",
"StreamName": "nats-server",
"Timeout": 10000,
"Verbose": true,
"StreamReceivedSubject": "TestData.received.Subject",
"ReceivedConsumerName": "TestData.Received.Consumer.Name",
"ConsumerReceivedSubject": "TestData.Consumer.Received.Subject",
"ConsumerReceivedFilter": "TestData.Received.Filter",
"Subjects": [
"TestData.*"
]
}
What am I missing in the settings for the connection? The error message I keep on getting is NATS.Client.NATSNoRespondersException: 'No responders are available for the request.'
Can anyone help me?
KR Jörgen
I got this error because I haven't enabled jetstreams
Run docker image with -js tag. It will work
docker run -p 5555:4444 nats -p 4444 -js
For More reference https://hub.docker.com/_/nats/
You get a 'no responder' when the server knows that there are no processes currently listening for your request. Rather than publishing the request and getting a timeout if no-one listening for those requests, this exception is there to let you know right away that there is currently no-one to service your request.
See this link for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With