Getting error trying to bind to exchange
Hi I'm getting a nasty error when I try to publish to this x-random exchange type. I am using rabbitmq 3.1.0 and I had to add the function:
validate_binding(_X, _Y) -> ok.
to the exchange to make binding work. Now I am getting an internal error in the route function.
I'm new to Erlang, and this error doesn't really give me anything to work from.
Connection (<0.324.0>) closing: internal error in channel (<0.331.0>): {{error, {undef, [{rabbit_exchange_type_random, validate_binding, [{exchange, {resource, <<"/">>, exchange, <<"bob">>}, 'x-random', true, false, false, [], undefined, undefined, {[], []}}, {binding, {resource, <<"/">>, exchange, <<"bob">>}, <<>>, {resource, <<"/">>, queue, <<"test">>}, []}]}, {rabbit_binding, '-add/2-fun-0-', 4}, {mnesia_tm, apply_fun, 3}, {mnesia_tm, execute_transaction, 5}, {rabbit_misc, '-execute_mnesia_transaction/1-fun-0-', 1}, {worker_pool_worker, handle_call, 3}, {gen_server2, handle_msg, 2}, {proc_lib, wake_up, 3}]}}, [{rabbit_misc, execute_mnesia_transaction, 1}, {rabbit_misc, execute_mnesia_tx_with_tail, 1}, {rabbit_channel, binding_action, 9}, {rabbit_channel, handle_cast, 2}, {gen_server2, handle_msg, 2}, {proc_lib, init_p_do_apply, 3}]}
I haven't tried the random exchange with version 3.1. Sounds like it needs a little refreshing. :)