Golang github.com/streadway/amqp : Exception (501) Reason: \"frame could not be parsed\"

880 views
Skip to first unread message

Leandro Gonçalves

unread,
Oct 7, 2019, 1:44:06 PM10/7/19
to rabbitmq-users
Hi everyone,

I'm using golang 1.11 and recently upgraded my RabbitMQ server from 3.6.6 to 3.7.17 and now I get this error:
```
Unable to connect to RabbitMQ server: Exception (501) Reason: "Exception (501) Reason: \"frame could not be parsed\""
```
Also tried this example (https://www.rabbitmq.com/tutorials/tutorial-three-go.html) but same error.

Is there an alternative to github.com/streadway/amqp ?

Thanks
Leandro

Luke Bakken

unread,
Oct 7, 2019, 3:25:02 PM10/7/19
to rabbitmq-users
Hi Leandro,

This is working fine on my dev workstation using RabbitMQ 3.8.0, Erlang 22.1.1, streadway/amqp latest master

$ go version
go version go1.13.1 linux/amd64

Terminal 1:

lbakken@shostakovich ~/development/rabbitmq/rabbitmq-tutorials/go (master=)
$ go run emit_log.go 
2019/10/07 12:22:23  [x] Sent hello

lbakken@shostakovich ~/development/rabbitmq/rabbitmq-tutorials/go (master=)
$ go run emit_log.go 
2019/10/07 12:22:24  [x] Sent hello

lbakken@shostakovich ~/development/rabbitmq/rabbitmq-tutorials/go (master=)
$ go run emit_log.go 
2019/10/07 12:22:24  [x] Sent hello

Terminal 2:

lbakken@shostakovich ~/development/rabbitmq/rabbitmq-tutorials/go (master=)
$ go run ./receive_logs.go
2019/10/07 12:22:21  [*] Waiting for logs. To exit press CTRL+C
2019/10/07 12:22:23  [x] hello
2019/10/07 12:22:24  [x] hello
2019/10/07 12:22:24  [x] hello
^Csignal: interrupt

Are you certain you are connecting to port 5672? What is shown in your RabbitMQ logs?

Thanks,
Luke

works-on-my-machine-badge-128px.png

Leandro Gonçalves

unread,
Oct 7, 2019, 8:19:43 PM10/7/19
to rabbitm...@googlegroups.com, Luke Bakken

Hi Luke,

Thank you so much for your quick reply, it helped me sort this issue out.

It was due to a port misconfiguration issue ( rancher/docker port 5672 ).

Best Regards,
Leandro

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/d52edac0-28f0-4efa-bbca-f95e53accb54%40googlegroups.com.

Michael Klishin

unread,
Oct 7, 2019, 10:55:30 PM10/7/19
to rabbitmq-users, Luke Bakken
Thank you for reporting back to the list. [1] is a highly relevant doc guide.




--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages