Skip to content

404 error on dash-folder dashboard type #190

@oxy-star

Description

@oxy-star

If dashboard type is dash-folder the /api/dashboards/:uid endpoint returns 404, and grafana-wtf stops with error

[omitted traceback]
grafana_client.client.GrafanaClientError: Client Error 404: Dashboard not found

As a workaround locally I've made this change in grafana_wtf/core.py, though I'm not sure if this is the correct way to fix this

    def fetch_dashboards(self):
        log.info("Fetching dashboards one by one")
        results = self.data.dashboard_list
        for dashboard_info in results:
+            if dashboard_info.get("type") == "dash-folder":
+                continue
            self.fetch_dashboard(dashboard_info)

I can raise a PR If you think this is ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions