You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect server to show content_length to be non-zero and conent_encoding seen as gzip
i.e.
('content_length:\n', 285)
('content_encoding:\n', 'gzip')
### Actual behavior
Looks like when content_encoding is set to "gzip" in telegraf config, the payload sent out is empty.
Changes I made to to http.go (telegraf.1.21). I created a local version of CompressWithGzip() and I compress reqBody first, before doing reqBodyBuffer io.Reader = bytes.NewBuffer(reqBody).
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.33.1 (git: HEAD@44f3a504) Linux calabash 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Docker
No response
Steps to reproduce
NOTE: telegraf version downloaded directly via:
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.33.1_linux_amd64.tar.gz
Test Input File Being Read
Expected behavior
I would expect server to show content_length to be non-zero and conent_encoding seen as gzip
i.e.
('content_length:\n', 0)
('content_encoding:\n', 'gzip')
Additional info
I built a version of telegraf (v1.21 branch) with the following changes to http.go, gzip and compression works fine.
Changes I made to to http.go (telegraf.1.21). I created a local version of CompressWithGzip() and I compress reqBody first, before doing reqBodyBuffer io.Reader = bytes.NewBuffer(reqBody).
The text was updated successfully, but these errors were encountered: