Skip to content

inputs.influxdb_listener with influx_parser_type = "upstream" - superfluous response.WriteHeader #10900

@Trovalo

Description

@Trovalo

Relevant telegraf.conf

[[inputs.influxdb_listener]]
  service_address = ":8186"
  read_timeout = "10s"
  write_timeout = "10s"

  influx_parser_type = "upstream"

Logs from Telegraf

http: superfluous response.WriteHeader call from github.com/influxdata/telegraf/plugins/inputs/influxdb_listener.badRequest (influxdb_listener.go:504)

ref: https://github.com/influxdata/telegraf/blob/b9e66f8b9a2d97e09a7e2c1ff5b2bc08bc4eeebc/plugins/inputs/influxdb_listener/influxdb_listener.go#L504

System info

Telegraf 1.22.0 on WIndows

Docker

No response

Steps to reproduce

  1. use inputs.influxdb_listener with the new upstream parser
  2. you will get the error reported above

Using the old parser does not trigger any error.

From what we've seen, despite this error, the data are still passing and everything seems to work, the main issue is that the log gets flooded by error messages

Expected behavior

not getting errors

Actual behavior

the error superfluous response.WriteHeader call is triggered continuously (every ~1sec)

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behaviorplatform/windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions