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

Empty result in sub-query fails whole graph #214

Open
promd opened this issue Sep 28, 2022 · 3 comments
Open

Empty result in sub-query fails whole graph #214

promd opened this issue Sep 28, 2022 · 3 comments
Labels
type/bug Unexpected behavior or a feature is broken

Comments

@promd
Copy link

promd commented Sep 28, 2022

Hi.
1st off: Many Thanks for the Plugin - it made great things possible for me !

Right now, I am facing what I believe is a bug - let me give some details:

  • I wrote a webservice that collects data and returns CSV formatted data.
  • This service returns multiple subsets of the data, but they all have the same columns (some being unpopulated in certain cases)
  • I have graphs in Grafana that use multiple of these CSV streams to populate the graf.
  • If one (or more) of the queries returns an empty result set (header send always), the whole Graph will go to "No Data in response", although at least one of the queries has valid data to show.
@zoltanbedi
Copy link
Member

Can you please maybe attach a csv file that I can use to reproduce this?

@guanzo
Copy link

guanzo commented Nov 24, 2023

You don't need specific data to reproduce, his instructions are accurate.

First, create a panel with an endpoint that returns any csv data. Just get the panel working.

image

This working panel can be broken in 2 ways. Create a new panel with an endpoint that either:

  1. Returns 0 bytes in the response. Both panels will crash.

image

  1. Returns the CSV headers only, no data rows.
  • Before defining the timestamp field, everything still works.
    image
    image

  • Then define a field with type "Time". Both panels crash.
    image

image

2 issues here:

  • The panel that receives 0 bytes, or headers with no data rows, should fail gracefully instead of crashing.
  • Working panels should not be affected by other panels that crash.

@zoltanbedi
Copy link
Member

Thanks for the detailed explanation @guanzo, I was able to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Unexpected behavior or a feature is broken
Projects
Status: Backlog
Development

No branches or pull requests

3 participants