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

influxdbreceiver: Unexpected response status code #6506

Closed
perrinj3 opened this issue Dec 3, 2021 · 1 comment · Fixed by #6530
Closed

influxdbreceiver: Unexpected response status code #6506

perrinj3 opened this issue Dec 3, 2021 · 1 comment · Fixed by #6530
Labels
bug Something isn't working comp:influxdb InfluxDB related issues

Comments

@perrinj3
Copy link

perrinj3 commented Dec 3, 2021

Describe the bug
The influxdbreceiver endpoint returns a "202 Accepted status code" instead of the expected "204 No Content" as defined from the InfluxDB API reference.

https://docs.influxdata.com/influxdb/v1.8/tools/api/#status-codes-and-responses-2

Steps to reproduce
The error occurs when K6 is configured to output test results to the InfluxdbReceiver endpoint. K6 expects a "HTTP/1.1 204 No Content" and when it gets"HTTP/1.1 202 Accepted" it reports this as a error which breaks the pipeline that runs the K6 test.

What did you expect to see?
HTTP/1.1 204 No Content

What did you see instead?
HTTP/1.1 202 Accepted

What version did you use?
Version: v0.4.0

What config did you use?

receivers:
  influxdb:
    endpoint: "0.0.0.0:8087"
          
exporters:
 
  file:
    path: ./jmeter_data.json 
 
service:
  pipelines:

   metrics:
     receivers: [influxdb]
     exporters: [file]

Environment
OS: Windows 2012

Additional context
Add any other context about the problem here.

@perrinj3 perrinj3 added the bug Something isn't working label Dec 3, 2021
@jpkrohling jpkrohling added the comp:influxdb InfluxDB related issues label Dec 3, 2021
@jpkrohling
Copy link
Member

cc @jacobmarble, @8none1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:influxdb InfluxDB related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants