Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Fix error on empty response #21

Open
kylebrandt opened this issue Sep 18, 2019 · 1 comment
Open

Fix error on empty response #21

kylebrandt opened this issue Sep 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@kylebrandt
Copy link
Contributor

Related to #20 in that this might points towards a different api endpoint.

If you make a GEL query that has no responses, then Respond in grafana/grafana/pkg/api/common.go sees no Frames, and sends a regular response instead of a DataFrame response. This then confuses the front end.

This can be simulated by clicking the "eye" icon to hide all the queries in a GEL query which will return a response like results: {"": {refId: "", series: [], tables: null, frames: {}}} and cause the UI to return Cannot read property 'map' of undefined

@kylebrandt kylebrandt added the bug Something isn't working label Sep 18, 2019
@ryantxu
Copy link
Member

ryantxu commented Nov 14, 2019

Is this still an issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants