Skip to content

httpx.exceptions.ProtocolError: multiple Content-Length headers #740

@freis

Description

@freis

This one I think its weird because I can't pinpoint what could cause this:

TRACE [2020-01-08 18:35:08] httpx.dispatch.connection_pool - acquire_connection origin=Origin(scheme='https' host='213.13.25.78' port=80)
TRACE [2020-01-08 18:35:08] httpx.dispatch.connection_pool - new_connection connection=HTTPConnection(origin=Origin(scheme='https' host='213.13.25.78' port=80))
TRACE [2020-01-08 18:35:08] httpx.config - load_ssl_context verify=False cert=None trust_env=True http2=True
TRACE [2020-01-08 18:35:08] httpx.dispatch.connection - start_connect tcp host='213.13.25.78' port=80 timeout=Timeout(timeout=10.0)
TRACE [2020-01-08 18:35:13] httpx.dispatch.connection_pool - acquire_connection origin=Origin(scheme='http' host='213.13.25.78' port=80)
TRACE [2020-01-08 18:35:13] httpx.dispatch.connection_pool - new_connection connection=HTTPConnection(origin=Origin(scheme='http' host='213.13.25.78' port=80))
TRACE [2020-01-08 18:35:13] httpx.dispatch.connection - start_connect tcp host='213.13.25.78' port=80 timeout=Timeout(timeout=10.0)
TRACE [2020-01-08 18:35:13] httpx.dispatch.connection - connected http_version='HTTP/1.1'
TRACE [2020-01-08 18:35:13] httpx.dispatch.http11 - send_headers method='GET' target='/' headers=Headers({'host': '213.13.25.78', 'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'})
TRACE [2020-01-08 18:35:13] httpx.dispatch.http11 - send_data data=Data(<0 bytes>)
TRACE [2020-01-08 18:35:13] httpx.dispatch.http11 - receive_event event=NEED_DATA
DEBUG [2020-01-08 18:35:13] httpx.dispatch.http11 - h11.RemoteProtocolError exception their_state=ERROR error_status_hint=400

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