[rabbitmq-discuss] Webhooks plugin
Jon Brisbin
jon at jbrisbin.com
Fri Sep 10 14:11:58 BST 2010
The plugin expects you to set a ContentType (on the message properties). It's giving an error because there isn't one. It passes this content-type along to the webhook in the form of the "Content-Type" header. Try using "text/plain" if you're just testing.
jb
On Sep 10, 2010, at 4:08 AM, sunghyun lee wrote:
> that doesnt seem to have solved it, or I am still getting the same or similar error. Its a bit strange as when I set the time window and try and send outside of it, the messages sit in the queue and I get information stating it will try in x minutes, so I assume it something to do with the actual http request its trying to make.
>
>
> The test publish I am trying to do is:
>
> channel.BasicPublish("webhooks.test", "test", null, Encoding.UTF8.GetBytes("hello"));
>
> but it can be changed to anything as I just want to see it working.
>
> thanks!
>
>
>
> On 9 September 2010 15:27, Jon Brisbin <jon at jbrisbin.com> wrote:
>
> I pushed to Git a fix for handling no message headers as well as putting a try/catch around the actual sending of the HTTP request which will keep an error there from crashing the broker.
>
> .tar.gz of the required .ez files is in the downloads section:
>
> http://github.com/jbrisbin/rabbitmq-webhooks/downloads
>
> jb
>
>
> On Sep 9, 2010, at 9:14 AM, Jon Brisbin wrote:
>
>> On Sep 9, 2010, at 8:37 AM, Jon Brisbin wrote:
>>
>>> On Sep 9, 2010, at 7:06 AM, sunghyun lee wrote:
>>>
>>>> Hello,
>>>>
>>>> I am currently working on testing the webhook plugin which was recently released and am having a few problems. The plugin seems to install ok and created the exchange, queues and bindings I expect, however when I publish a message (byte[] with one byte which is an integer) the broker crashes with the "kernel pid terminated". Attached are the logs.
>>>>
>>>> Is there an example app somewhere I can look at? This plugin would solve a lot of issues which IIS is causing so I am open to look at anything whihc might help.
>>>>
>>>> thanks!
>>>
>>>
>>> It looks like this error happens when there are no message headers. I'll put some code in there to handle empty headers, but as a workaround, try creating empty headers on your message.
>>>
>>
>> I think what I meant to say is:
>>
>> "I'll put some code in there to handle NO message headers".
>>
>> As well as error handling...
>>
>> Jon Brisbin
>> Portal Webmaster
>> NPC International, Inc.
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
> Thanks!
>
> J. Brisbin
> http://jbrisbin.com/
>
>
>
>
>
>
>
> <rabbit at SLEE.log><rabbit at SLEE-sasl.log>
Thanks!
J. Brisbin
http://jbrisbin.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100910/64169240/attachment.htm>
More information about the rabbitmq-discuss
mailing list