Skip to content
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

ets lookup error inside rebar3 plugin #738

Open
ziopio opened this issue Mar 13, 2024 · 1 comment
Open

ets lookup error inside rebar3 plugin #738

ziopio opened this issue Mar 13, 2024 · 1 comment

Comments

@ziopio
Copy link

ziopio commented Mar 13, 2024

My team encountered this error while running our plugins under rebar:

Error: badarg
[{ets,lookup_element,
      [hackney_config,mod_metrics,2],
      [{error_info,#{cause => id,module => erl_stdlib_errors}}]},
 {hackney_metrics,get_engine,0,
                  [{file,"/***/_build/default/plugins/hackney/src/hackney_metrics.erl"},
                   {line,27}]},
 {hackney_connect,create_connection,5,
                  [{file,"/***/_build/default/plugins/hackney/src/hackney_connect.erl"},
                   {line,75}]},
 {hackney_connect,connect,5,
                  [{file,"/***/_build/default/plugins/hackney/src/hackney_connect.erl"},
                   {line,44}]},
 {grisp_tools_package,list_bucket,2,
                      [{file,"/***/_build/default/plugins/grisp_tools/src/grisp_tools_package.erl"},
                       {line,21}]},

The code that makes the call is this one https://github.com/grisp/grisp_tools/blob/23958f60be544986228c18b9e9d616230f7e8427/src/grisp_tools_package.erl#L20C1-L24C9
The plugin lists hackney in the applications section, therefor it should be started correctly. https://github.com/grisp/grisp_tools/blob/master/src/grisp_tools.app.src

We can only reproduce this on a single computer, we want to report this in case anyone has any suggestion on the possible cause.

@benoitc
Copy link
Owner

benoitc commented May 3, 2024

on which version of Erlang did you have this error? Do you set a custom hackney application environment n your application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants