<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>See the Info report and Crash report below:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>=INFO REPORT==== 13-Nov-2013::16:34:26 ===</DIV>
<DIV>RabbitHub register subscription (startup); ok</DIV>
<DIV>rabbithub_pseudo_queue</DIV>
<DIV>{rabbithub_lease,</DIV>
<DIV>{rabbithub_subscription,</DIV>
<DIV>{resource,<<"/">>,exchange,<<"junk">>},</DIV>
<DIV>"foo","<A
href='http://192.168.1.37:8086/hubsub"}'>http://192.168.1.37:8086/hubsub"}</A>,</DIV>
<DIV>1384427066480905}</DIV>
<DIV></DIV>
<DIV>=CRASH REPORT==== 13-Nov-2013::16:34:26 ===</DIV>
<DIV>crasher:</DIV>
<DIV>initial call: rabbithub_pseudo_queue:init/1</DIV>
<DIV>pid: <0.15753.0></DIV>
<DIV>registered_name: []</DIV>
<DIV>exception exit: {{badmatch,</DIV>
<DIV>{amqqueue,</DIV>
<DIV>{resource,<<"/">>,queue,</DIV>
<DIV><<"amq.http.pseudoqueue-Xbp6m5myR_Z21g8Igw-AdA">>},</DIV>
<DIV>false,false,none,[],<0.15753.0>,[],undefined,</DIV>
<DIV>undefined,undefined,[]}},</DIV>
<DIV>[{rabbithub_pseudo_queue,really_init,1,</DIV>
<DIV>[{file,"src/rabbithub_pseudo_queue.erl"},{line,28}]},</DIV>
<DIV>{gen_server,init_it,6,</DIV>
<DIV>[{file,"gen_server.erl"},{line,304}]},</DIV>
<DIV>{proc_lib,init_p_do_apply,3,</DIV>
<DIV>[{file,"proc_lib.erl"},{line,239}]}]}</DIV>
<DIV>in function gen_server:init_it/6 (gen_server.erl, line 328)</DIV>
<DIV>ancestors: [rabbithub_subscription_sup,rabbithub_sup,<0.252.0>]</DIV>
<DIV>messages: []</DIV>
<DIV>links: [<0.265.0>]</DIV>
<DIV>dictionary: [{{xtype_to_module,direct},rabbit_exchange_type_direct},</DIV>
<DIV>{guid,{{1572502171,2578597878,1993740040,2198831220},0}}]</DIV>
<DIV>trap_exit: true</DIV>
<DIV>status: running</DIV>
<DIV>heap_size: 987</DIV>
<DIV>stack_size: 27</DIV>
<DIV>reductions: 624</DIV>
<DIV>neighbours:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>Any guess?</DIV>
<DIV> </DIV>
<DIV
style="FONT-FAMILY: 'Segoe UI'; COLOR: #000000; FONT-SIZE: 10pt"><BR>Regards,
<BR>Lijo Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com">Brett Cameron</A> </DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 11:40 AM</DIV>
<DIV><B>To:</B> <A title=lijo@citrusinformatics.com
href="mailto:lijo@citrusinformatics.com">Lijo Sebastian</A> </DIV>
<DIV><B>Subject:</B> Re: Fwd: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>
<DIV>The response to the challenge request needs to go back to RabbitHub, which
is what you appear to be doing; there should be something in the RabbitMQ log
that provides more information as to why this is failing. Possibly your UTF-8
encoding is changing the value, so the sent and received tokens do not match,
although an HTTP 500 tends too imply something a bit more serious... possibly
the 3.1.5 version of the plugin is not 100% compatible with RabbitMQ 3.2.1...
but anything liek this will be evident from the RabbitMQ log.<BR><BR></DIV>For
my testing I just tend to use the following trivial piece of Ruby Sinatra code,
which starts up a web server on port 4567. As you can see, the GET just responds
by sending back the challenge token. The POST method just displays the received
message and will return an empty response body.<BR><BR>require
'sinatra'<BR><BR>get '/sub2' do<BR> puts "Received
#{params}"<BR> puts "Responding to challenge
request..."<BR> params[:"hub.challenge"]<BR>end<BR><BR>post '/sub2'
do<BR> puts "Received message: #{params} "<BR>end<BR><BR><BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, Nov 13, 2013 at 7:00 PM, Lijo Sebastian <SPAN
dir=ltr><<A href="mailto:lijo@citrusinformatics.com"
target=_blank>lijo@citrusinformatics.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Yeah Brett, i received the token with ‘<EM>hub.challenge</EM>’
parameter.</DIV>
<DIV> </DIV>
<DIV>But issue here is i think, i need to send response to my server, right?
</DIV>
<DIV> </DIV>
<DIV>As now i am trying subscribe part in command prompt with curl
commands, and my c# application listening for a callback url, how could
i send a response to server from the listening localhost is the issue here i
think!</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards, <BR>Lijo
Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com" target=_blank>Brett Cameron</A> </DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 11:19 AM</DIV>
<DIV><B>To:</B> <A title=lijo@citrusinformatics.com
href="mailto:lijo@citrusinformatics.com" target=_blank>Lijo Sebastian</A>
</DIV>
<DIV><B>Subject:</B> Fwd: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>I probably would have just returned it as a string without doing
the UTF-8 encoding, but the the HTTP 500 error is interesting. Check the
RabbitMQ log for additional information.<BR>
<DIV><FONT face="Segoe UI"></FONT> </DIV>
<DIV>Additionally, can you confirm that your C# code received the
token?<BR><BR></DIV>
<DIV>
<DIV class=gmail_quote>---------- Forwarded message ----------<BR>From: <B
class=gmail_sendername>Lijo Sebastian</B> <SPAN dir=ltr><<A
href="mailto:lijo@citrusinformatics.com"
target=_blank>lijo@citrusinformatics.com</A>></SPAN><BR>Date: Wed, Nov 13,
2013 at 6:20 PM<BR>Subject: Re: [rabbitmq-discuss] Subscribing an Exchange
with RabbitHub<BR>To: Discussions about RabbitMQ <<A
href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A>><BR><BR><BR>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Okai. I got the url with hub.challenge=<token> as a
querystring.</DIV>
<DIV>How should i return this challenge token back to webserver?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Currently i tried with</DIV>
<DIV> </DIV>
<DIV>// Retrieves challengetoken </DIV>
<DIV>string challenge = request.QueryString["hub.challenge"];</DIV>
<DIV> </DIV>
<DIV>// Converting the text to byteArray</DIV>
<DIV>byte[] challengeBuffer = Encoding.UTF8.GetBytes(challenge);</DIV>
<DIV> </DIV>
<DIV>// Writes buffer into the response body.</DIV>
<DIV>Response.Body.Write(challengeBuffer, 0, challengeBuffer.Length);</DIV>
<DIV> </DIV>
<DIV>But this is the result i got..</DIV>
<DIV> </DIV>
<DIV><B>* upload completely sent off: 117 out of 117 bytes</B></DIV>
<DIV><B>< <FONT color=#ff0000>HTTP/1.1 500 Internal Server
Error</FONT></B></DIV>
<DIV><B>< Server: nginx/1.1.19</B></DIV>
<DIV><B>< Date: Wed, 13 Nov 2013 05:15:09 GMT</B></DIV>
<DIV><B>< Content-Length: 0</B></DIV>
<DIV><B>< Connection: keep-alive</B></DIV>
<DIV><B><</B></DIV>
<DIV><B>* Connection #0 to host <A href="http://xxxx.yyyy.com"
target=_blank>xxxx.yyyy.com</A> left intact</B></DIV>
<DIV><B>* Closing connection #0</B></DIV>
<DIV><B></B> </DIV>
<DIV>What could be the possible error here?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards, <BR>Lijo
Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com" target=_blank>Brett Cameron</A> </DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 10:07 AM</DIV>
<DIV><B>To:</B> <A title=rabbitmq-discuss@lists.rabbitmq.com
href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss</A> </DIV>
<DIV><B>Subject:</B> Re: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<P dir=ltr>That's correct. As per the documentation you can also specify a
duration for the subscription (after which it will be expired), etc.</P>
<P dir=ltr>Just be sure to note that the initial challenge is a GET; messages
are then forwarded to the URL using POST.</P>
<DIV class=gmail_quote>On 13/11/2013 5:31 PM, "Lijo Sebastian" <<A
href="mailto:lijo@citrusinformatics.com"
target=_blank>lijo@citrusinformatics.com</A>> wrote:<BR type="attribution">
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Oh, so can i specify any url as a callback url and satisfy request
verification.</DIV>
<DIV>any client url that can do verification on this request right?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards, <BR>Lijo
Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com" target=_blank>Brett Cameron</A>
</DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 2:05 AM</DIV>
<DIV><B>To:</B> <A title=rabbitmq-discuss@lists.rabbitmq.com
href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target=_blank>Discussions
about RabbitMQ</A> </DIV>
<DIV><B>Subject:</B> Re: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>
<DIV>
<DIV>Lijo,<BR><BR></DIV>The error indicates that your web server at <A
href="http://rabbitmq.citrus.com" target=_blank>rabbitmq.citrus.com</A> did
not respond correctly to the initial challenge request. When a subscription
is requested, RabbitHub sends a challenge request (HTTP GET) to the
specified URL. The challenge request sends a token and the web server is
expected to respond to the challenge request by sending back the same token
in the response body. Assuming this process completes successfully the
subscription will be activated. Once the subscription has been activated,
RabbitHub will send to the subscription URL any messages matching the
subscription (note that messages are sent using HTTP POST, not
GET).<BR><BR></DIV>Brett<BR><BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, Nov 13, 2013 at 1:43 AM, Lijo Sebastian <SPAN
dir=ltr><<A href="mailto:lijo@citrusinformatics.com"
target=_blank>lijo@citrusinformatics.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Hi,</DIV>
<DIV> Please guide me through.
</DIV>
<DIV> I
am using RabbitHub plugin for RESTish way of publishing messages.</DIV>
<DIV>
Creating and Deleting Exchanges or Queues are working fine. </DIV>
<DIV>
Also able to publish message with http post method to queues subscribed
through amqp. </DIV>
<DIV> </DIV>
<DIV>But how to achieve subscribe with RabbitHub.</DIV>
<DIV> </DIV>
<DIV>I tried the example available with RabbitHub tutorial. Added my
call back url . Got Error.</DIV>
<DIV> </DIV>
<DIV>What could be the possibilities of the below shown error?</DIV>
<DIV> </DIV>
<DIV>Thanks in Advance!!!</DIV>
<DIV> </DIV>
<DIV>Error : </DIV>
<DIV> </DIV>
<DIV>Request verification failed: challenge_mismatch* Connection #0 to
host rabbitmq</DIV>
<DIV><A href="http://citrus.com" target=_blank>citrus.com</A> left
intact</DIV>
<DIV>* Closing connection #0</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards,
<BR>Lijo Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics
(India) Pvt
Ltd.</DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR><BR></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV>
<HR>
_______________________________________________<BR>rabbitmq-discuss mailing
list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR><BR></BLOCKQUOTE></DIV>
<HR>
_______________________________________________<BR>rabbitmq-discuss mailing
list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR><BR></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></BODY></HTML>