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

Paths not conforming '/lookup' will not work #27

Open
toadle opened this issue Mar 24, 2015 · 1 comment
Open

Paths not conforming '/lookup' will not work #27

toadle opened this issue Mar 24, 2015 · 1 comment

Comments

@toadle
Copy link

toadle commented Mar 24, 2015

When trying to consume Bitly-messages the basic configuration looks like this.

    consumer = Krakow::Consumer.new(
      :nsqlookupd => 'https://api-ssl.bitly.com/v3/nsq/lookup?access_token=xxx',
      :topic => 'topic',
      :channel => 'channel'
      }
    )

Using krakow this will not work, because Krakow::Discovery overwrites path and query hard with its own values.

Problematic lines:

uri = URI.parse(location)
uri.path = '/lookup'
uri.query = "topic=#{topic}&ts=#{Time.now.to_i}"

Don't know why this is done.

@toadle
Copy link
Author

toadle commented Mar 24, 2015

Trying to fix here: #29

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