-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NATS Connection Error after Restarting nats-server: Unable to Publish Messages #1542
Comments
Hello @smedjes, I tested it locally and couldn't reproduce your issue. However, I did find that it's possible to check the connection status when returning the connection to the pool. I will attempt a fix, but I'm not sure if it will be effective for you. |
@yang-xiaodong I could test it if you could provide a prerelease! :) |
Good! version |
It works, thanks @yang-xiaodong! We were apparently using an older version of CAP (8.0.1), so I wanted to make sure it wasn't a bug that's already been fixed. I upgraded to your prerelease and it was working. Then I downgraded to version 8.1.2 and there I'm still getting the error. |
Fixed in version 8.2.0. |
Can this be an issue for NATS as well?
I'm investigating an issue we're having that seems to be occurring after I stop and restart nats-server.
So I'm able to receive messages, but when I try to publish I get a error saying the connection is closed.
Do you have any ideas?
Thanks in advance!
Originally posted by @smedjes in #533 (comment)
The text was updated successfully, but these errors were encountered: