Closed radixhound closed 10 years ago
I thought I'd give NSQ and Krakow a spin and I've run into a wall. Here's what I did:
nsq/bin
nsq/bin/nsqd
curl -d "mooo" http://127.0.0.1:4151/put\?topic\=moo
curl http://127.0.0.1:4151/create_channel\?topic\=moo\&channel\=foo
require 'krakow' consumer = Krakow::Consumer.new( host: 'localhost', port: 4151, topic: 'moo', channel: 'foo', max_in_flight: 1 ) while true do msg = consumer.queue.pop puts "Squawk: #{msg}" consumer.confirm(msg.message_id) end
This errors out with this error:
/ruby/gems/1.9.1/gems/krakow-0.2.2/lib/krakow/frame_type.rb:40:in `build': Unknown frame type received: 791752241 - nil (TypeError)
I put a socket.recv(100) here and found "HTTP/1.1 400 Bad Request\r\n\r\n"
socket.recv(100)
"HTTP/1.1 400 Bad Request\r\n\r\n"
Any tips or insight would be much appreciated! Thanks.
You've got the wrong port on your consumer instantiation, it's port 4150 :smiley:
4150
Boom. Headshot.
Thanks!
@mreiferson thanks for the quick response! closing this up.
I thought I'd give NSQ and Krakow a spin and I've run into a wall. Here's what I did:
nsq/bin
folder (installed on OS X Mavericks)nsq/bin/nsqd
curl -d "mooo" http://127.0.0.1:4151/put\?topic\=moo
curl http://127.0.0.1:4151/create_channel\?topic\=moo\&channel\=foo
-> nsqadmin shows that all seems to be workingThis errors out with this error:
I put a
socket.recv(100)
here and found"HTTP/1.1 400 Bad Request\r\n\r\n"
Any tips or insight would be much appreciated! Thanks.