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

Unknown reply code 312 #1331

Closed
sergey-netdev opened this issue Mar 28, 2023 · 0 comments · Fixed by #1332
Closed

Unknown reply code 312 #1331

sergey-netdev opened this issue Mar 28, 2023 · 0 comments · Fixed by #1332
Labels
Milestone

Comments

@sergey-netdev
Copy link

sergey-netdev commented Mar 28, 2023

Describe the bug

When I call the following code with invalid (non existing queue) routingKey

                channel.BasicPublish(
                    exchange: _exchange,
                    routingKey: _key,
                    basicProperties: null,
                    mandatory: true,
                    body: message.Payload);

I get code 312 in BasicReturn event handler's args.ReplyCode and "NO_ROUTE" as a message. There is no such code in RabbitMQ.Client.Constants class, the closest is RabbitMQ.Client.Constants.NoConsumers which is 313.

Reproduction steps

Use .NET RabbitMQ.Client nuget version 6.5.0
Use IModel.BasicPublish() and subscribe to IModel.BasicReturn event handler
See 312 reply code when the handler is triggered

Expected behavior

313 reply code so I can use RabbitMQ.Client.Constants.NoConsumers in my tests

Additional context

No response

michaelklishin added a commit that referenced this issue Mar 28, 2023
@lukebakken lukebakken added this to the 6.6.0 milestone Mar 30, 2023
@Zerpet Zerpet modified the milestones: 6.6.0, 6.5.1 Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants