Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Exceptions with requests #24

Open
PNixx opened this issue Mar 9, 2021 · 2 comments
Open

Exceptions with requests #24

PNixx opened this issue Mar 9, 2021 · 2 comments

Comments

@PNixx
Copy link
Contributor

PNixx commented Mar 9, 2021

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.

@mmasiukevich
Copy link
Contributor

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

@PNixx
Copy link
Contributor Author

PNixx commented Apr 8, 2022

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 '/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants