[rabbitmq-discuss] Searching for a client library/example: Problems getting a reliable connection in Python and Erlang

Matthias Radestock matthias at rabbitmq.com
Sun Nov 4 23:40:12 GMT 2012


Daniel,

On 04/11/12 22:04, Daniel Neugebauer wrote:
> If I comment the assignment of #amqp_params_network.host out, I can get
> a connection that instantly fails with "Connection (<0.35.0>) closing:
> internal error in channel (<0.45.0>): shutdown".
>
> If I try to set any hostname, I only get: {"init terminating in
> do_boot",{{badmatch,{error,unknown_host}},[{stdin2amqp,main,1,[{file,"src/stdin2amqp.erl"},{line,24}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
>
> It doesn't make a difference if I pass a string through
> list_to_bitstring or enter it directly as <<"localhost">>. The local
> machine's hostname (short or full) or FQDNs (terminated by a dot) don't
> work either. Neither do IPs (I even tried <<127, 0, 0, 1>> and <<1, 0,
> 0, 127>> hoping that maybe I would need the IP address as 4 bytes in
> either endianess).

#amqp_params_network.host is expected to be a string, not a binary. See 
http://www.rabbitmq.com/releases/rabbitmq-erlang-client/v2.8.7/doc/amqp_connection.html#type-amqp_params_network 
for the complete type signature.

Regards,

Matthias.



More information about the rabbitmq-discuss mailing list