Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twisted web client doesn't support trailer Server-Timing #11997

Closed
taroved opened this issue Sep 20, 2023 · 0 comments · Fixed by #11998
Closed

Twisted web client doesn't support trailer Server-Timing #11997

taroved opened this issue Sep 20, 2023 · 0 comments · Fixed by #11998
Labels

Comments

@taroved
Copy link
Contributor

taroved commented Sep 20, 2023

Describe the incorrect behavior you saw
Twisted web client doesn't support trailer Server-Timing.
Example: https://w3c.github.io/server-timing/#the-server-timing-header-field

Describe how to cause this behavior
Use console program (simple http client) from this gist: https://gist.github.com/taroved/06922ceeb872094304cc889dacae099f

Always you run the code:

python httpclient.py https://www.esquire.com/

You see such exception:

Traceback (most recent call last):
Failure: twisted.web._newclient.ResponseFailed: [<twisted.python.failure.Failure twisted.web.http._MalformedChunkedDataError: Chunk did not end with CRLF>, <twisted.python.failure.Failure twisted.web.http._DataLoss: Chunked decoder in 'TRAILER' state, still expecting more data to get to 'FINISHED' state.>]

Describe the correct behavior you'd like to see
Such pages as https://www.esquire.com/ should be downloaded without exceptions.

Testing environment

  • Linux 939ff8bae3fe 5.15.49-linuxkit-pr
  • Twisted version: 23.8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant