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

Error "condition:amqp:session:window-violation" when connecting to RabbitMQ 4.x #221

Open
eutrom opened this issue Jan 7, 2025 · 0 comments

Comments

@eutrom
Copy link

eutrom commented Jan 7, 2025

I am referencing CFX.CFXSDK 1.7.3 Nuget package in my .Net Framework 4.8 application. When trying to connect to RabbitMQ 4.0.3 (Erlang 26.2.5.4) I get the ConnectionInterrupted event with the following error:
"error(condition:amqp:session:window-violation,description:next-incoming-id from FLOW (0) leads next-outgoing-id (4294967292))"

It happens only if I create and open the AmqpCFXEndpoint and then try to add a subscribe channel:

_endpoint = new AmqpCFXEndpoint();
_endpoint.Open(CfxHandle, new Uri(RequestAddress));
...
Uri uri = new Uri(BrokerAddress);
AmqpChannelAddress channelAddress = new AmqpChannelAddress { Uri = uri, Address = amqpSource };
_endpoint.AddSubscribeChannel(channelAddress);

If I am (successfully) adding a publish channel before adding the subscribe channel, then the issue does not appear. (I can't do this in my application, because the user is only required to provide the subscribe channel).

I think that the issue is caused by the referenced AMQPNetLite 2.4.5 package (Azure/amqpnetlite#575)
However, I tried to reference a newer version of AMQPNetLite and use a binding redirect. But it looks like then the p2p requests are not being sent.

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

No branches or pull requests

1 participant