Unable to parse gzip message: Missing tag value


I have a client that can successfully write to InfluxDB.
To reduce the bandwidth:

  • I added the Accept-Encoding: gzip header to InfluxDB API requests as per instructions.

  • I created a simple test go script to deflate a simple message meas value=1.

  • With compression level =6 i get the following HEX output: 1F8B 0800 0000 0000 00FF CA4D 4D2C 5628 4BCC 294D B535 0404 0000 FFFF B8D1 CFDB 0C00 0000.

  • Copy paste HEX in my client. InfluxDB responds with 400 Bad requests, unable to parse ‘\u001f\ufffd\u0008\u0000\u0000\u0000\u0000\u0000\u0000\ufffd\ufffdMM,V(K\ufffd)M\ufffd5\u0004\u0004\u0000\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u000c\u0000\u0000\u0000’: missing tag value


  • Any idea of what I am doing wrong during at the compression stage? I also tried gzipping the message directly in my client but InfluxDB is not able to parse it correctly also in this case.
  • Any information on how InfluxDB inflates back the strings?


Found the issue. I had to add the Content-Encoding: gzip header, not Accept-Encoding: gzip.

1 Like