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

The response payload string is also cut in half #1252

Open
ferhatcamgoz opened this issue Jun 25, 2024 · 0 comments
Open

The response payload string is also cut in half #1252

ferhatcamgoz opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ferhatcamgoz
Copy link

I ran the command below and saw that the response payload was missing in my log file. When I wrote to Kafka for testing purposes, the result did not change. It cuts off the response. Increasing the buffer size did not change the result.
sudo ./gor --input-raw :8072 --output-file requests25.log --input-raw-track-response --input-raw-realip-header X-Real-IP --input-raw-buffer-size 3048576 --output-http-response-buffer 3048576 --input-raw-allow-incomplete true --input-raw-override-snaplen

1 7b111f88d440ca8d4ef1832c 1719312363823048450 0
GET /api/v3/pet/findByStatus?status=available HTTP/1.1
X-Real-IP: 212.64.202.141
Accept-Language: en-US,en;q=0.9,tr-TR;q=0.8,tr;q=0.7
Cache-Control: no-cache
Connection: keep-alive
Pragma: no-cache
Referer: http://4.233.221.58:8072/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
accept: application/xml
Postman-Token: 1d04dc96-ad64-48aa-b45b-5440b6b968bf
Host: 4.233.220.96:8072
Accept-Encoding: gzip, deflate, br


🐵🙈🙉
2 7b111f88d440ca8d4ef1832c 1719312363826198290 0
HTTP/1.1 200 OK
Date: Tue, 25 Jun 2024 10:46:03 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, DELETE, PUT
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Expose-Headers: Content-Disposition
Content-Type: application/xml
Content-Length: 1975
Server: Jetty(9.4.9.v20180320)

<ArrayList><item><id>1</id><category><id>2</id><name>Cats</name></category><name>Cat 1</name><photoUrls><photoUrl>url1</photoUrl><photoUrl>url2</photoUrl></photoUrls><tags><tag><id>1</id><name>tag1</name></tag><tag><id>2</id><name>tag2</name></tag></tags><status>available</status></item><item><id>2</id><category><id>2</id><name>Cats</name></category><name>Cat 2</name><photoUrls><photoUrl>url1</photoUrl><photoUrl>url2</photoUrl></photoUrls><tags><tag><id>1</id><name>tag2</name></tag><tag><id>2</id><name>tag3</name></tag></tags><status>available</status></item><item><id>4</id><category><id>1</id><name>Dogs</name></category><name>Dog 1</name><photoUrls><photoUrl>url1</photoUrl><photoUrl>url2</photoUrl></photoUrls><tags><tag><id>1</id><name>tag1</name></tag><tag><id>2</id><name>tag2</name></tag></tags><status>available</status></item><item><id>7</id><category><id>4</id><name>Lions</name></category><name>Lion 1</name><photoUrls><photoUrl>url1</photoUrl><photoUrl>url2</photoUrl></photoUrls><tags><tag><id>1</id><name>tag1</name></tag><tag><id>2</id><name>tag2</name></tag></tags><status>available</status></item><item><id>8</id><category><id>4</id><name>Lions</name></category><name>Lion 2</name><photoUrls><photoUrl>url1</photoUrl><photoUrl>url2</photoUrl></photoUrls><tags><ta
🐵🙈🙉

The real response is as follows:

<ArrayList>
    <item>
        <id>1</id>
        <category>
            <id>2</id>
            <name>Cats</name>
        </category>
        <name>Cat 1</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag1</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag2</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>2</id>
        <category>
            <id>2</id>
            <name>Cats</name>
        </category>
        <name>Cat 2</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag2</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag3</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>4</id>
        <category>
            <id>1</id>
            <name>Dogs</name>
        </category>
        <name>Dog 1</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag1</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag2</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>7</id>
        <category>
            <id>4</id>
            <name>Lions</name>
        </category>
        <name>Lion 1</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag1</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag2</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>8</id>
        <category>
            <id>4</id>
            <name>Lions</name>
        </category>
        <name>Lion 2</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag2</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag3</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>9</id>
        <category>
            <id>4</id>
            <name>Lions</name>
        </category>
        <name>Lion 3</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag3</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag4</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
    <item>
        <id>10</id>
        <category>
            <id>3</id>
            <name>Rabbits</name>
        </category>
        <name>Rabbit 1</name>
        <photoUrls>
            <photoUrl>url1</photoUrl>
            <photoUrl>url2</photoUrl>
        </photoUrls>
        <tags>
            <tag>
                <id>1</id>
                <name>tag3</name>
            </tag>
            <tag>
                <id>2</id>
                <name>tag4</name>
            </tag>
        </tags>
        <status>available</status>
    </item>
</ArrayList>
@dosubot dosubot bot added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant