RabbitMQ bad_header

1,169 views
Skip to first unread message

Anju S

unread,
Dec 3, 2022, 12:25:26 PM12/3/22
to rabbitmq-users
I am new to RabbitMQ. I have setup RabbitMQ server in my local machine and trying to test it out by publishing a message to a queue. But connection (from postman) fails and I could see below entry in log file.

2022-12-03 10:19:28.722000-07:00 [info] <0.702.0> accepting AMQP connection <0.702.0> ([::1]:64594 -> [::1]:5672)
2022-12-03 10:19:30.808000-07:00 [error] <0.702.0> closing AMQP connection <0.702.0> ([::1]:64594 -> [::1]:5672):
2022-12-03 10:19:30.808000-07:00 [error] <0.702.0> {bad_header,<<"123\r\n\r\ns">>}

I tried to test connection with telnet, but even then I see same error in log file.

Can somebody guide me to where I am going wrong here.


gftea

unread,
Dec 4, 2022, 8:26:05 AM12/4/22
to rabbitmq-users
are you using any rabbitmq client?

Luke Bakken

unread,
Dec 4, 2022, 12:57:12 PM12/4/22
to rabbitmq-users
Hello,

Postman will send HTTP requests containing JSON data. You are connecting to port 5672, which expects the AMQP protocol.

When you use telnet, you are sending text data. Again, this is not the AMQP protocol, so you see a similar error.

So, you have two options:
Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages