apache / apache/jmeter

zstd is not supported by JMeter

Open
#6,418 0 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

The JSON response should be a valid JSON
the expected response should look like this (as it does when we don't use zstd --, using Accept-Encoding: gzip, deflate, br):

![Image](https://github.com/user-attachments/assets/972f7c2f-f47e-4f37-9bb7-82ccdb0e21a1)

### Actual behavior

This is how the JSON is presented in JMeter View Results Tree

![Image](https://github.com/user-attachments/assets/124e3ac2-3ac5-49ff-829d-c654db2fca0d)

### Steps to reproduce the problem

I used both: JMeter Recorder and BlazeMeter Auto Correlation recorder to record one of the website who is delivered through CloudFlare CDN and during the recording I saw that response is not properly decoded and shown.
Script contains in request headers: Accept-Encoding: gzip, deflate, br, zstd

In the browser (Chrome) we can also see the call having zstd as accept-encoding

![Image](https://github.com/user-attachments/assets/34a077d6-cf04-4c83-b76c-960d3e1b20da)

for testing you can use this cURL command:
curl "https://api.peviitor.ro/v3/total/" \
-H "Accept: */*" \
-H "Accept-Language: en-US,en;q=0.9,ro-RO;q=0.8,ro;q=0.7" \
-H "Origin: https://peviitor.ro" \
-H "Priority: u=1, i" \
-H "Referer: https://peviitor.ro/" \
-H "Sec-CH-UA: \"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"" \
-H "Sec-CH-UA-Mobile: ?0" \
-H "Sec-CH-UA-Platform: \"Windows\"" \
-H "Sec-Fetch-Dest: empty" \
-H "Sec-Fetch-Mode: cors" \
-H "Sec-Fetch-Site: same-site" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Run the script
Check in View Results Tree what the endpoint is returning

### JMeter Version

5.6.3

### Java Version

openjdk version "17.0.14" 2025-01-21 LTS

### OS Version

Windows 11 Enterprise 23H2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.