arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
277 stars 129 forks source link

RPC: request no consuming published response #191

Open acarlstein opened 5 years ago

acarlstein commented 5 years ago

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?

zlintz commented 5 years ago

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