Erlang AMQP Client error for Azure Service Bus

I’m trying to connect Azure Service Bus (AMQP 1.0) using this erlang client:

The elixir wrapper library doesn’t seem like using AMQP 1.0. So I’m trying to use the erlang client directly.

I did the following:

git clone
cd rabbitmq-amqp1.0-client
make shell

Then I created a config as per the README file at

OpnConf = #{address => Hostname,
            port => Port,
            hostname => <<"">>,
            tls_opts => {secure_port, [{versions, ['tlsv1.1']}]},
            container_id => <<"test-container">>,
            transfer_limit_margin => 100,
            sasl => {plain, User, Password}}.

When I try to open the connection as in the README, I get the following error. I’m not able to follow the erlang error message. Any help is appreciated.

{ok, Connection} = amqp10_client:open_connection(OpnConf).
** exception exit: {noproc,{gen_server,call,
                                        {start_child,[#{address =>
                                                        container_id => <<"test-container">>,
                                                        hostname => <<"">>,
                                                        notify => <0.111.0>,port => 5671,
                                                        sasl =>
                                                        tls_opts => {secure_port,[{versions,['tlsv1.1']}]},
                                                        transfer_limit_margin => 100}]},
     in function  gen_server:call/3 (gen_server.erl, line 223)
     in call from amqp10_client_connection:open/1 (src/amqp10_client_connection.erl, line 110)

There is no process with the name :amqp10_client_sup, have you started the supervision tree correctly?

I thought amqp10_client:open_connection/1 will create the supervisor. Will check. Do you by any chance know how to start it? Docs are sparse and any help is greatly appreciate.

Why are you using the Erlang AMQP client rather than the Elixir one? The latter at least has better documentation than the former. :slight_smile:

if you are referring to Elixir client: , it doesn’t support AQMP 1.0.

1 Like

I do not use that library, I just told you what the error message is about :wink: Usually the supervision tree is set up when starting the application. Usually this happens implicitely, depending on the build system you use and how you specified the dependency.

Th repo you linked has no app file in src/ and uses for building, so I have no clue if the application entrypoint is actually properly advertised by the amqp library.

One of these should work:

Application.ensure_all_started(:amqp10_client_app) # maybe without `_app` suffix
# or
:amqp10_client_app.start(:temporary, [])

But the first version is to prefer over everything else, as the latter bypasses a lot of the BEAMs internal application supervision.


Thank you @NobbZ . This answer in SO works for me. Basically, the erlang version of your answer.


Note the app name is amqp10_client without the _app suffix.

I didn’t realize you were hacking Erlang, I thought you were trying to interface the Erlang library from elixir.

Ah, I see :sweat_smile:.