Skip to content

0.23.3 Client Error 404: Dashboard not found #201

@IgorOhrimenko

Description

@IgorOhrimenko

On the new version 0.23.3 I get an error:

user@wsl:~$ grafana-wtf find report
2025-09-19 14:51:12,006 [grafana_wtf.commands                ] INFO    : Grafana location: https://grafana.lan/
2025-09-19 14:51:12,013 [grafana_wtf.core                    ] INFO    : Response cache will expire after 3600 seconds
2025-09-19 14:51:12,015 [grafana_wtf.core                    ] INFO    : Response cache database: /home/user/.cache/grafana-wtf.sqlite
2025-09-19 14:51:12,037 [grafana_wtf.commands                ] INFO    : Grafana version: 12.1.1
2025-09-19 14:51:12,037 [grafana_wtf.core                    ] INFO    : Scanning dashboards
2025-09-19 14:51:12,045 [grafana_wtf.core                    ] INFO    : Found 823 dashboard(s)
0it [00:00, ?it/s]
2025-09-19 14:51:12,049 [grafana_wtf.core                    ] INFO    : Fetching dashboards one by one                                                                                  | 0/823 [00:00<?, ?it/s]
                                                                                                                                                                                                                Traceback (most recent call last):                                                                                                                                              | 65/823 [00:00<00:01, 647.79it/s]
  File "/home/user/.local/bin/grafana-wtf", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/grafana_wtf/commands.py", line 255, in run
    engine.scan_common()
  File "/home/user/.local/lib/python3.12/site-packages/grafana_wtf/core.py", line 141, in scan_common
    self.scan_dashboards()
  File "/home/user/.local/lib/python3.12/site-packages/grafana_wtf/core.py", line 227, in scan_dashboards
    self.fetch_dashboards()
  File "/home/user/.local/lib/python3.12/site-packages/grafana_wtf/core.py", line 265, in fetch_dashboards
    self.fetch_dashboard(dashboard_info)
  File "/home/user/.local/lib/python3.12/site-packages/grafana_wtf/core.py", line 254, in fetch_dashboard
    dashboard = self.grafana.dashboard.get_dashboard(dashboard_info["uid"])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/grafana_client/elements/dashboard.py", line 23, in get_dashboard
    return self.client.GET(get_dashboard_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/grafana_client/client.py", line 217, in __request_runner
    return self._extract_from_response(r, accept_empty_json)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/grafana_client/client.py", line 170, in _extract_from_response
    raise GrafanaClientError(
grafana_client.client.GrafanaClientError: Client Error 404: Dashboard not found
 12%|████████████████████▌                                                                                                                                                    | 100/823 [00:00<00:07, 101.92it/s]

there is no error when rolling back to 0.20.1.
Install via pip install grafana-wtf.
Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

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