Skip to content

Unable to obtain truncated responses using --max-print-bytes #291

Open
@LeeZBug

Description

@LeeZBug

Describe the bug
I use 'kyanos watch http --path /site/list' to capture data, it says "truncated, total: 2351bytes"

Image

But when I use "kyanos watch http --path /site/list --max-print-bytes=5120", it not says "truncated, total: 2351bytes", but the response is still incomplete.

Image

To Reproduce
everytime

Expected behavior
It seems that the '--max-print-bytes=5120' parameter is not taking effect.

Screenshots
like above

Information (please complete the following information):
Linux test 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededtuiterminal ui related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions