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

Panel does not show the list of asset models when an asset model has no description #122

Closed
lejeuneretif opened this issue Mar 31, 2022 · 1 comment · Fixed by #123
Closed
Assignees

Comments

@lejeuneretif
Copy link

lejeuneretif commented Mar 31, 2022

When an asset model in IoT SiteWise does not have any description, the panel with a Query Type on List asset models shows No data in response. When exploring this panel, the Query error Metric request error shows up.

These errors do not show when all the asset models have a description.

Minimal Reproducible Example:

  • in the Console of IoT SiteWise, create the demo if there is no asset models, and a dummy model with an empty description,
  • in a Grafana instance:
    • create the IoT SiteWise Data Source,
    • create a dashboard with a panel with Query Type as List asset models -> the panel says No data in response,
    • explore the panel -> the error Query error Metric request error shows.
  • back in the Console of IoT SiteWise, add a description to the dummy asset model,
  • refresh the page of the exploration of the panel -> the list of asset models shows, and the panel itself does not say No data in response anymore.

The description if an optional field of the asset models, the plugin should not show any error when this optional field is missing.

The Grafana logs contain these errors around the time when this issue occurs:

failed to query data: Failed to query data: rpc error: code = Canceled desc = context canceled

failed to query data: Failed to query data: rpc error: code = Unavailable desc = error reading from server: EOF

We think the plugin crashes on empty description.

@atifali
Copy link
Contributor

atifali commented Apr 6, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants