After I upgraded mechanize to the version that uses net-http-persistent (3.0.0) that started to use connection_pool, the latter throws strange error:
8: from /[...]/.bundle/gems/ruby/2.5.0/bundler/gems/mechanize-b499a8380511/lib/mechanize/page/link.rb:30:in `click'
7: from /[...]/.bundle/gems/ruby/2.5.0/bundler/gems/mechanize-b499a8380511/lib/mechanize.rb:348:in `click'
6: from /[...]/.bundle/gems/ruby/2.5.0/bundler/gems/mechanize-b499a8380511/lib/mechanize.rb:464:in `get'
5: from /[...]/.bundle/gems/ruby/2.5.0/bundler/gems/mechanize-b499a8380511/lib/mechanize/http/agent.rb:280:in `fetch'
4: from /[...]/.bundle/gems/ruby/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:927:in `request'
3: from /[...]/.bundle/gems/ruby/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:642:in `connection_for'
2: from /[...]/.bundle/gems/ruby/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:642:in `ensure in connection_for'
1: from /[...]/.bundle/gems/ruby/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent/pool.rb:16:in `checkin'
ConnectionPool::Error (no connections are checked out)
After I upgraded
mechanize
to the version that usesnet-http-persistent (3.0.0)
that started to useconnection_pool
, the latter throws strange error: