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

Access refused when trying to bind router to queue #3

Closed
nopain1210 opened this issue Mar 29, 2021 · 1 comment
Closed

Access refused when trying to bind router to queue #3

nopain1210 opened this issue Mar 29, 2021 · 1 comment

Comments

@nopain1210
Copy link

Dear sir,
I have "ACCESS_REFUSED - operation not permitted on the default exchange" error when trying your consumer example.
This is my code

consumer, err := rabbitmq.NewConsumer(env.RabbitMqUrl)
	handleError(err, "Create consumer", true)

	err = consumer.StartConsuming(
		func(d rabbitmq.Delivery) bool {
			log.Printf("Consumed: %s", d.Body)

			return true
		},
		"runner_sandbox_worker",
		[]string{"runner_sandbox_routing"},
		rabbitmq.WithConsumeOptionsConcurrency(10),
		rabbitmq.WithConsumeOptionsQueueDurable,
		rabbitmq.WithConsumeOptionsQuorum,
	)
	handleError(err, "Start consuming", true)

Thanks!

@wagslane
Copy link
Owner

Thanks! v0.4.0 will solve this, the examples are also updated to include an exchange

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

2 participants