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

Cannot send message #2

Open
ZedZipDev opened this issue Nov 20, 2021 · 0 comments
Open

Cannot send message #2

ZedZipDev opened this issue Nov 20, 2021 · 0 comments

Comments

@ZedZipDev
Copy link

I have created SQLCLR, all is ok.
Then try this
EXEC dbo.pr_SomeProcessingStuff @id = 101
But receive

Msg 50000, Level 16, State 1, Procedure dbo.pr_SomeProcessingStuff, Line 29 [Batch Start Line 20]
Error: Error: A .NET Framework error occurred during execution of user-defined routine or aggregate "pr_clr_PostRabbitMsg": 
System.ApplicationException: Channel pool blocked when trying to post message to Exchange: amq.direct.
System.ApplicationException: 
   at RabbitMQSqlClr.RabbitPublisher.Post(String exchange, Byte[] msg, String topic)
   at RabbitMQSqlClr.RabbitMQSqlServer.pr_clr_PostRabbitMsg(Int32 endPointId, String msgToPost)
. at line: 0 at line: 13

I have changed the amq.direct -> amq.topic but the same error.
I use SQL Server 2019 and RabbitMQ Docker
docker run -d --hostname my-rabbit --name some-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management

Where am I wrong? what to fix?

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