fix: rabbitmq connection dont reconnect if the channel is closed
Closed this issue · 0 comments
42atomys commented
Describe the bug
When the connection between webhooked and rabbitmq server is interrupted, webhooked dont reconnect automatically and never send events.
To Reproduce
- Connect to a Rabbitmq backend
- Kill the Rabbitmq server
- Start the Rabbimq again
- Send a webhook
What happened
Weebhooked stay with closed error eternally
Expected behavior
Webhooked needs to reconnect and send event asap
Relevant log output
4:07PM INF Webhook is processed duration=1.259667ms secure=true spec=locations-close statusCode=500 version=v1alpha1
4:07PM ERR Error during webhook processing error="Exception (504) Reason: \"channel/connection is not open\"" apiVersion=v1alpha1
### Version of software
0.5
### Environment
Docker
### Environment version
_No response_
### Additional context
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct