Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Doesn’t work with h2c on nghttp2.org #312

Closed
@vfaronov

Description

@vfaronov

Not sure if the problem is in Hyper/h2 or in nghttp2, but AssertionError would suggest the former:

$ hyper GET http://nghttp2.org/
Traceback (most recent call last):
  File "/home/vasiliy/tmp/env4/bin/hyper", line 11, in <module>
    load_entry_point('hyper==0.8.0.dev0', 'console_scripts', 'hyper')()
  File "/home/vasiliy/tmp/env4/lib/python3.5/site-packages/hyper/cli.py", line 259, in main
    data = request(args)
  File "/home/vasiliy/tmp/env4/lib/python3.5/site-packages/hyper/cli.py", line 249, in request
    response = conn.get_response()
  File "/home/vasiliy/tmp/env4/lib/python3.5/site-packages/hyper/common/connection.py", line 130, in get_response
    return self._conn.get_response(*args, **kwargs)
  File "/home/vasiliy/tmp/env4/lib/python3.5/site-packages/hyper/http11/connection.py", line 225, in get_response
    self
  File "/home/vasiliy/tmp/env4/lib/python3.5/site-packages/hyper/http11/response.py", line 69, in __init__
    assert self._expect_close or self._length is not None or self._chunked
AssertionError

With tcpdump, I see the HTTP/1.1 upgrade dance, and I see nghttp2.org sending the HTML. I can attach the dump if you wish.

This is with Git master versions of Hyper and h2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions