rabbot icon indicating copy to clipboard operation
rabbot copied to clipboard

RPC: request no consuming published response

Open acarlstein opened this issue 5 years ago • 1 comments

Could you help me out to figure out what I do wrong?

rabbit.request('extension.requests'
		, {
			type: 'request'
			, routingKey: 'routing.key.extend'
			, timeout: 60000
			, replyTimeOut: 60000
			, body: body
		},part => {
			log.info("GETTING PART");
			part.ack();
		}).then(reply => {
			log.info("WE GOT THE STUFF");
			log.info(reply);
			reply.ack();
		}).catch(failed => {
			log.error("IT FAILED");
			log.error(failed);
		});

(I tried without the part section too).

On the other side, I am receiving the message with the generated queue (reply-to) and processing it successfully. Then, send the results to that generated queue.

I can see the reply message in RabbitMQ Management: generatedqueue with message

But for some reason, the request is not consuming it! What am I missing?

acarlstein avatar Mar 04 '19 17:03 acarlstein

@acarlstein Are both sides using rabbot? or different languages?

zlintz avatar Mar 21 '19 16:03 zlintz