Closed spinettaro closed 3 years ago
apparently you can set it using the mix file. Hope it helps.
@benoitc could you show me the code in practice please? Thanks :)
http://blog.plataformatec.com.br/2016/05/how-to-config-environment-variables-with-elixir-and-exrm/
On Thu, May 20, 2021 at 7:40 PM Daniele Spinetti @.***> wrote:
@benoitc https://github.com/benoitc could you show me the code in practice please? Thanks :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/benoitc/hackney/issues/682#issuecomment-845324949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADRIRNX5IZV62JK7GMO2LTOVCPJANCNFSM4ZMKOJ3A .
@spinettaro I am guessing that this would be config :hackney, use_default_pool: false
but I am running into a frustrating {:error, :closed}
that I can't get rid of (OpenAI package -> HTTPoison package -> Hackney package) and so I don't think this works... Did you get it to work?
@Trevoke yes that was what I did. If I remember well it worked for me config :hackney, use_default_pool: false
in my config file
if someone can provide a pr to document it that can be helpful :)
Hi,
I'm using Elixir and HTTPoison and I would like, for a test purpose, to disable the default pool as described in the main Readme. How can I set the hackney application environment key use_default_pool to false? I have a Elixir Phoenix project.
Thanks in advance