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

I can read from this RabbitMQ, but not using op-rabbit #174

Open
accu-knauthg opened this issue Jul 29, 2019 · 4 comments
Open

I can read from this RabbitMQ, but not using op-rabbit #174

accu-knauthg opened this issue Jul 29, 2019 · 4 comments

Comments

@accu-knauthg
Copy link

If I use traditional newmotion DefaultConsumer(channel), handleDelivery ... I can read from a remote RabbitMQ, but when I try using op-rabbit, I just can't get it to work.

[INFO] [foo-akka.actor.default-dispatcher-7] [akka://foo/user/$a/connection] akka://foo/user/$a/connection connected to amqp://anonymous@{dd.weather.gc.ca:5671}:5671//
[INFO] [foo-op-rabbit.default-channel-dispatcher-6] [akka://foo/user/$a/connection/$a] akka://foo/user/$a/connection/$a connected
[INFO] [foo-akka.actor.default-dispatcher-4] [akka://foo/user/$a/connection/confirmed-publisher-channel] akka://foo/user/$a/connection/confirmed-publisher-channel connected
[INFO] [foo-akka.actor.default-dispatcher-4] [akka://foo/user/$a/connection/$b] akka://foo/user/$a/connection/$b connected
[ERROR] [foo-akka.actor.default-dispatcher-3] [akka://foo/user/$a/subscription-q_anonymous_gsk-1] Connection related error while trying to re-bind a consumer to q_anonymous_gsk. Waiting in anticipating of a new channel.
...
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=403, reply-text=ACCESS_REFUSED - access to exchange 'xpublic' in vhost '/' refused for user 'anonymous', class-id=40, method-id=10)

These are the parameters that work fine with newmotion, but not with op-rabbit.

canada {
  hosts = ["dd.weather.gc.ca"]
  username = "anonymous"
  password = "anonymous"
  port = 5671
  exchange = "xpublic"
  queue = "q_anonymous_gsk"
  routingKey = "v02.post.observations.swob-ml.#"
  requestedHeartbeat = 300
  ssl = true
}

If someone can read from this RabbitMQ using op-rabbit, I'd be very interested to know how you did it, because I've been beating myself up for days trying to get the op-rabbit version to work.

@accu-knauthg
Copy link
Author

accu-knauthg commented Jul 29, 2019

Here's an example of how another person successfully connects to this service using node: https://github.com/darkskyapp/node-sarra

And here is documentation from Environment Canada: http://dd.weather.gc.ca/doc/README_AMQP.txt

Detail and diagrams here: https://github.com/MetPX/sarracenia/blob/master/doc/sarra.rst

"Dumbed-down" Python3 client that "fixes all AMQPS issues": https://github.com/JohnTheNerd/PySarra/blob/master/consumers/ECConsumer.py

@accu-knauthg accu-knauthg changed the title I can read from a remote RabbitMQ, but not using op-rabbit I can read from this RabbitMQ, but not using op-rabbit Jul 29, 2019
@accu-knauthg
Copy link
Author

accu-knauthg commented Jul 29, 2019

I wonder if the problems I'm having are related to #167

@accu-knauthg
Copy link
Author

Is it possible to hire someone who is expert at op-rabbit? I haven't received any reply to this issue.

@accu-knauthg
Copy link
Author

I posted a related question on Stack Overflow, hoping someone there might have a comment.
https://stackoverflow.com/questions/57371143/why-do-i-get-access-refused-using-op-rabbit-but-not-newmotion-akka

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