ridge icon indicating copy to clipboard operation
ridge copied to clipboard

Exceptions with requests

Open PNixx opened this issue 4 years ago • 2 comments

I try subscribe to channel with:

yield $channel->consume('onMessage', 'queue', 'tag');
yield $channel->consume('onMessage', 'queue', 'tag');

For first request it working, but for the second it remains pending for a long time.

In rabbitmq I see:

operation basic.consume caused a connection exception not_allowed: "attempt to reuse consumer tag 'tag'"

This also applies to the queueDeclare method with different parameters. I think need to throw an exception when the server raises an error.

PNixx avatar Mar 09 '21 13:03 PNixx

Associated with 26 In the future I will subscribe to frames reporting an error

mmasiukevich avatar Dec 04 '21 11:12 mmasiukevich

yield self::$channel->queueDeclare('test', true);

Passive mode not working. The code stops after the request. In rabbit log I see:

[error] <0.693.0> operation queue.declare caused a channel exception not_found: no queue 'test' in vhost '/'

PNixx avatar Apr 08 '22 10:04 PNixx