Skip to content

private method send_buffer' called for an instance of HTTP2::Client error when http-2 gem version is < 1.1.1` #118

@AbanoubGhadban

Description

@AbanoubGhadban

Problem

HTTPX has an http-2 gem dependency that accepts any version >= 1.0.0. However, when I use any version of http-2 less than 1.1.1, I get the error.

private method `send_buffer' called for an instance of HTTP2::Client

Steps to Reproduce

# Gemfile
gem "httpx", "1.6.3"
gem "http-2", "1.0.2"
# client.rb
require "bundler/setup"
require 'httpx'

response = HTTPX.with(fallback_protocol: "h2").get("http://localhost:4000/test")

unless response.respond_to?(:body)
  puts "Error:"
  puts response.error
else
  puts "Response:"
  puts response.body
end

Affected Versions

>= 1.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions