You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I start a service with amqp-transport (rabbitmq) and moleculer-channels listen to a given topic. If i start
a client with( disableBalancer:true) which send to this channel and then exit afterwards, than i get this error message :
moleculer-channels-amqp-test/node_modules/moleculer/src/transporters/amqp.js:434
.assertQueue(queue, this._getQueueOptions(PACKET_REQUEST, true))
^
TypeError: Cannot read properties of null (reading 'assertQueue')
at AmqpTransporter.subscribeBalancedRequest (/home/me/public_html/moleculer-channels-amqp-test/node_modules/moleculer/src/transporters/amqp.js:434:5)
at /home/me/public_html/moleculer-channels-amqp-test/node_modules/moleculer/src/transporters/base.js:269:14
at Array.map (<anonymous>)
at /home/me/public_html/moleculer-channels-amqp-test/node_modules/moleculer/src/transporters/base.js:268:37
at Array.map (<anonymous>)
at /home/me/public_html/moleculer-channels-amqp-test/node_modules/moleculer/src/transporters/base.js:262:14
If i change disableBalancer:false the error-message went away.
Expected Behavior
The client should exit without error message, even with disableBalancer:true
if you don't have an Rabbitmq running on localhost you could start one with docker:
docker-compose up
start the service: node source/service.js
start the client: node source/client.js
you get the error
start the client with disableBalancer:false: node source/clientOk.js
you get no error message
### Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
* Moleculer version: 0.14.26
* NodeJS version: 17.9.0
* Operating System: Ubuntu 22.10
The text was updated successfully, but these errors were encountered:
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
Maybe it correspond to this issue: moleculerjs/moleculer-channels#49
I start a service with amqp-transport (rabbitmq) and moleculer-channels listen to a given topic. If i start
a client with(
disableBalancer:true
) which send to this channel and then exit afterwards, than i get this error message :If i change
disableBalancer:false
the error-message went away.Expected Behavior
The client should exit without error message, even with
disableBalancer:true
Failure Information
Steps to Reproduce
I've created a minimal-repo here: https://github.com/me23/moleculer-channels-amqp-test.git
clone repo and change path to it
if you don't have an Rabbitmq running on localhost you could start one with docker:
docker-compose up
start the service: node source/service.js
start the client: node source/client.js
you get the error
start the client with disableBalancer:false: node source/clientOk.js
you get no error message
The text was updated successfully, but these errors were encountered: