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

0.5.8: function Mint.HTTP1.open/2 is undefined or private #453

Open
AntoineAugusti opened this issue Feb 5, 2025 · 3 comments
Open

0.5.8: function Mint.HTTP1.open/2 is undefined or private #453

AntoineAugusti opened this issue Feb 5, 2025 · 3 comments

Comments

@AntoineAugusti
Copy link

Mint 1.7 has been released 1 hour ago and it seems to cause serious problems.

Mix.install([
  {:req, "~> 0.5.8"}
])

Req.get!("https://example.com")

Gives

Resolving Hex dependencies...
Resolution completed in 0.662s
New:
  finch 0.19.0
  hpax 1.0.2
  jason 1.4.4
  mime 2.0.6
  mint 1.7.0
  nimble_options 1.1.1
  nimble_pool 1.1.0
  req 0.5.8
  telemetry 1.3.0
* Getting req (Hex package)
* Getting finch (Hex package)
* Getting jason (Hex package)
* Getting mime (Hex package)
* Getting mint (Hex package)
* Getting nimble_options (Hex package)
* Getting nimble_pool (Hex package)
* Getting telemetry (Hex package)
* Getting hpax (Hex package)
==> mime
Compiling 1 file (.ex)
Generated mime app
==> nimble_options
Compiling 3 files (.ex)
Generated nimble_options app
===> Analyzing applications...
===> Compiling telemetry
==> jason
Compiling 10 files (.ex)
Generated jason app
==> hpax
Compiling 4 files (.ex)
Generated hpax app
==> mint
Compiling 1 file (.erl)
Compiling 20 files (.ex)
Generated mint app
==> nimble_pool
Compiling 2 files (.ex)
Generated nimble_pool app
==> finch
Compiling 14 files (.ex)
Generated finch app
==> req
Compiling 17 files (.ex)
Generated req app
** (UndefinedFunctionError) function Mint.HTTP1.open/2 is undefined or private. Did you mean:

      * open?/1
      * open?/2

    (mint 1.7.0) Mint.HTTP1.open(%Mint.HTTP1{host: "example.com", port: 443, request: nil, streaming_request: nil, socket: {:sslsocket, {:gen_tcp, #Port<0.28>, :tls_connection, :undefined}, [#PID<0.969.0>, #PID<0.968.0>]}, transport: Mint.Core.Transport.SSL, mode: :passive, scheme_as_string: "https", case_sensitive_headers: false, skip_target_validation: false, requests: {[], []}, state: :open, buffer: "", proxy_headers: [], private: %{}, log: false}, :write)
    (finch 0.19.0) lib/finch/http1/pool.ex:283: Finch.HTTP1.Pool.transfer_if_open/3
    (finch 0.19.0) lib/finch/http1/pool.ex:70: anonymous fn/10 in Finch.HTTP1.Pool.request/6
    (nimble_pool 1.1.0) lib/nimble_pool.ex:462: NimblePool.checkout!/4
    (finch 0.19.0) lib/finch/http1/pool.ex:52: Finch.HTTP1.Pool.request/6
    (finch 0.19.0) lib/finch.ex:493: anonymous fn/4 in Finch.request/3
    (telemetry 1.3.0) /Users/antoineaugusti/Library/Caches/mix/installs/elixir-1.16.2-erts-13.2.2.7/b3829ba2f71be23dd7c3b174d3952d5f/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
    (req 0.5.8) lib/req/finch.ex:253: Req.Finch.run_finch_request/3
@AntoineAugusti
Copy link
Author

See sneako/finch#298

@wojtekmach
Copy link
Owner

wojtekmach commented Feb 5, 2025

Thank you, please explicitly pin Mint in the meantime in your project:

{:mint, "~> 1.6.0"}

@AntoineAugusti
Copy link
Author

elixir-mint/mint#462 and a Mint release should fix the issue

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