You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to require 'async/http', it reports that it doesn't know what URI:WSS is:
$ ruby -e "require 'async/http'"
/var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/endpoint.rb:25:in `<class:Endpoint>': uninitialized constant URI::WSS (NameError)
"wss" => URI::WSS,
^^^^^
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/endpoint.rb:20:in `<module:HTTP>'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/endpoint.rb:18:in `<module:Async>'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/endpoint.rb:17:in `<top (required)>'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/internet.rb:8:in `require_relative'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http/internet.rb:8:in `<top (required)>'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http.rb:11:in `require_relative'
from /var/lib/gems/3.1.0/gems/async-http-0.80.0/lib/async/http.rb:11:in `<top (required)>'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:149:in `require'
from -e:1:in `<main>'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- async/http (LoadError)
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
from -e:1:in `<main>'
The error can be resolved by calling require 'uri/wss' beforehand:
$ ruby -e "require 'uri/wss'; require 'async/http'; puts 'ok'"
ok
The text was updated successfully, but these errors were encountered:
I am running the default stable version of Ruby for Debian Bookworm:
When I try to
require 'async/http'
, it reports that it doesn't know whatURI:WSS
is:The error can be resolved by calling
require 'uri/wss'
beforehand:The text was updated successfully, but these errors were encountered: