-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled terminate function clause #93
Comments
Whoah that is pretty ugly. Let me try to format that a bit |
{{:function_clause,
[
{:amqp_gen_connection, :terminate,
[
{:function_clause,
[
{:inet_dns, :encode_labels,
[
<<"LONG BINARY">>,
{4,
{["brisk-bear", "rmq", "cloudamqp", "com", "", "home"], 12, nil,
{["rmq", "cloudamqp", "com", "", "home"], 23,
{["cloudamqp", "com", "", "home"], 27, nil,
{["com", "", "home"], 37, nil, nil}}, nil}}},
41,
["", "home"]
], [file: 'inet_dns.erl', line: 694]},
{:inet_dns, :encode_name, 4, [file: 'inet_dns.erl', line: 675]},
{:inet_dns, :encode_query_section, 3, [file: 'inet_dns.erl', line: 269]},
{:inet_dns, :encode, 1, [file: 'inet_dns.erl', line: 240]},
{:inet_res, :make_query, 5, [file: 'inet_res.erl', line: 670]},
{:inet_res, :make_query, 4, [file: 'inet_res.erl', line: 638]},
{:inet_res, :res_query, 6, [file: 'inet_res.erl', line: 622]},
{:inet_res, :res_getby_query, 4, [file: 'inet_res.erl', line: 589]}
]},
{pid,
{:amqp_params_network, "device_863", "BINARYTOKEN", "vbzcxsqr",
'brisk-bear.rmq.cloudamqp.com', 5672, 0, 0, 0, :infinity, :none,
[&:amqp_auth_mechanisms.plain/3, &:amqp_auth_mechanisms.amqplain/3], [], []}}
], [file: 'src/amqp_gen_connection.erl', line: 239]},
{:gen_server, :try_terminate, 3, [file: 'gen_server.erl', line: 648]},
{:gen_server, :terminate, 10, [file: 'gen_server.erl', line: 833]},
{:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}
]}, {:gen_server, :call, [pid, :connect, :infinity]}} |
I ran into this same issue. In my case opening a connection when the port is a string caused this error
where as an Integer works as expected |
I don't think that is what is happening to me, but i'll make sure to check this out. |
Hi. Can you provide a sample code(including mix.lock) and steps to reproduce the issue? Would be helpful to know the environment too (OS, RabbitMQ version, Elixir version etc.) |
I haven't been able to reproduce this personally. I received it in a bug report. A particular user get this exception for some reason. FWIW, "amqp": {:hex, :amqp, "1.0.0-pre.2", "952180aac9b3a1faea96522f589327e8286457b8bd0fd84bf0560e06d02f5a5a", [], [{:amqp_client, "~> 3.6.8", [hex: :amqp_client, repo: "hexpm", optional: false]}, {:rabbit_common, "~> 3.6.8", [hex: :rabbit_common, repo: "hexpm", optional: false]}], "hexpm"},
"amqp_client": {:hex, :amqp_client, "3.6.12", "dfdfe7be661feb96ece404092a47431a73797ad412959732d940f96f80290da0", [], [{:rabbit_common, "3.6.12", [hex: :rabbit_common, repo: "hexpm", optional: false]}], "hexpm"} The device is running elixir 1.5.1 and OTP 20.1, connecting to RabbitMQ 3.6.12, Erlang 19.3. here is how i'm opening the connection to rabbit. opts = [
host: "brisk-bear.rmq.cloudamqp.com",
username: "device_863",
password: "BASE64ENCODED JSON WEB TOKEN",
virtual_host: "vbzcxsqr"]
AMQP.Connection.open(opts) Also i just looked at the Erlang source described in that stack trace And it looks like my issue is caused by the token being to large. |
This doesn't seem to be an issue with the |
Actually, upon further inspection, it doesn't seem to have to do with my token, but one of the dns labels?
the pattern match for |
This may be inside the underlying amqp lib. If you think this is a lower level issue please feel free to close.
The text was updated successfully, but these errors were encountered: