lihaoyi / test

0 stars 0 forks source link

request's encoding is corrupt #645

Open lihaoyi opened 1 month ago

lihaoyi commented 1 month ago

When trying to setup gzip request, I get from server a 400 response:

The request content was malformed:
The request's encoding is corrupt
    at requests.Requester$$anon$1.readBytesThrough(Requester.scala:356)
    at geny.Readable.writeBytesTo(Writable.scala:93)
    at geny.Readable.writeBytesTo$(Writable.scala:93)
    at requests.Requester$$anon$1.writeBytesTo(Requester.scala:165)
    at requests.Requester.apply(Requester.scala:114)

Please see attached simple main that shows the issue.

Note: apache client works find against server, hence I think it's an issue in requests impl HttpServerRoutingMinimal.zip

ID: 88 Original Author: yairogen

lihaoyi commented 1 month ago

@lihaoyi is this a known issue?

Original Author:yairogen

lihaoyi commented 1 month ago

@yairogen any chance you could provide a build file to go along with the source code? Otherwise I'm not sure how to reproduce Original Author:lihaoyi

yairogen commented 1 month ago

I'm afraid I no longe have the env to reproduce for you.

On Mon, May 27, 2024 at 5:13 AM Li Haoyi @.***> wrote:

@yairogen https://github.com/yairogen any chance you could provide a build file to go along with the source code? Otherwise I'm not sure how to reproduce Original Author:lihaoyi

— Reply to this email directly, view it on GitHub https://github.com/lihaoyi/test/issues/645#issuecomment-2132523933, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEHJY3WPWOGJYL3FIDBVOLZEKJGDAVCNFSM6AAAAABIKKGKOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGUZDGOJTGM . You are receiving this because you were mentioned.Message ID: @.***>