Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Channel closed #138

Open
Espina2 opened this issue May 29, 2019 · 2 comments
Open

Channel closed #138

Espina2 opened this issue May 29, 2019 · 2 comments

Comments

@Espina2
Copy link

Espina2 commented May 29, 2019

Often I get this error "IllegalOperationError - Channel closed", and I have to restart the server for getting a new connection. There is anyway I can reconnect without restart the server?

Full stracktrace above:
node_modules/amqplib/lib/channel.js:154:11none node_modules/amqplib/lib/channel_model.js:158:15publish node_modules/amqplib/lib/channel_model.js:162:15sendToQueue node_modules/servicebus/bus/rabbitmq/queue.js:170:11send node_modules/servicebus/bus/rabbitmq/bus.js:236:22none node_modules/servicebus/bus/bus.js:72:23next node_modules/servicebus/bus/bus.js:79:10handleOutgoing node_modules/servicebus/bus/rabbitmq/bus.js:235:8send

@mateodelnorte
Copy link
Owner

You could build a reconnect plugin, using something like this as a guideline https://gist.github.com/carlhoerberg/006b01ac17a0a94859ba

@Espina2
Copy link
Author

Espina2 commented May 30, 2019

@mateodelnorte thanks. I will take a look on that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants