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

Requests to MultiSearch endpoint have the wrong "Content-Type" header value #164

Closed
sivo opened this issue May 9, 2023 · 1 comment · Fixed by #403
Closed

Requests to MultiSearch endpoint have the wrong "Content-Type" header value #164

sivo opened this issue May 9, 2023 · 1 comment · Fixed by #403
Assignees

Comments

@sivo
Copy link

sivo commented May 9, 2023

What happened:
Requests to the _msearch endpoint between the web UI and the Grafana server/proxy have a "Content-Type" header set to "application/json", although it is newline-delimited JSON.

This normally would work just fine, except in some configurations where there is a reverse proxy in between (nginx in my case) that for some reason doesn't handle this correctly.

What you expected to happen:
Requests to the _msearch endpoint should have the "Content-Type" header set to "application/x-ndjson". The Elasticsearch datasource does this correctly.

How to reproduce it (as minimally and precisely as possible):
Create a dashboard with a data request using this datasource. Observe headers of the request that is made from the browser when viewing the dashboard.

Environment:

  • Grafana version: 9.4.7
  • Plugin version: 2.2.0
@sivo sivo added datasource/OpenSearch type/bug Something isn't working labels May 9, 2023
@kevinwcyu
Copy link
Contributor

Thanks @sivo, I'll put this into our backlog.


Reference PR to whoever picks this up: grafana/grafana#32282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants