igrigorik / em-http-request

Asynchronous HTTP Client (EventMachine + Ruby)
1.22k stars 220 forks source link

RubyHttpParser.java:478:in `header_value_type=' #346

Open jabbadev opened 3 years ago

jabbadev commented 3 years ago

A simple http get can't run

Version details

jruby --version jruby 9.2.17.0 (2.5.8) 2021-03-29 84d363da97 OpenJDK 64-Bit Server VM 11.0.11+9 on 11.0.11+9 +jit [linux-x86_64]

eventmachine (1.2.7 java) em-http-request (1.1.7)

Test Case:

pry [1] pry(main)> require 'eventmachine' [2] pry(main)> require 'em-http-request' [4] pry(main)> EventMachine.run { [4] pry(main) http = EventMachine::HttpRequest.new('http://google.com/').get [4] pry(main) } ArgumentError: Invalid header value type from org/ruby_http_parser/RubyHttpParser.java:478:in `header_value_type=' [5] pry(main)>

Thanks