Very sporadic results for folderIds searches.
/api/search?folderIds=1 sometimes returns results and other times result is empty [].
Scenario 1
Step 1: Example: /api/search?folderIds=1 result is []
Step 2: Wait 20 seconds, or sometimes wait for 60 seconds
Step 3: /api/search?folderIds=1 results successfully returned
Scenario 2
Step 1: /api/search?folderIds=1 results successfully returned
Step 2: After a couple of minutes /api/search?folderIds=1 result is []
Is it timing out? Unclear if the issue is your system or the API.
Not timing out. Getting 200 response code with empty results…sporadically.
This is happening on * Grafana v7.1.5 (9893b8c53d)
Empty result for same call /api/search?folderIds=1
[]
…20 seconds later…
Successful result for same call /api/search?folderIds=1
[{“id”:1024,“uid”:“cne-cne-details”,“title”:“CNE Dashboard: Details”,“uri”:“db/cne-dashboard-details”,“url”:"/d/cne-cne-details/cne-dashboard-details",“slug”:"",“type”:“dash-db”,“tags”:[],“isStarred”:false,“folderId”:1,“folderUid”:“cne”,“folderTitle”:“CNE”,“folderUrl”:"/dashboards/f/cne/cne"},{“id”:1023,“uid”:“cne-cne-10ft”,“title”:“CNE Dashboard: Overview [10ft]”,“uri”:“db/cne-dashboard-overview-10ft”,“url”:"/d/cne-cne-10ft/cne-dashboard-overview-10ft",“slug”:"",“type”:“dash-db”,“tags”:[],“isStarred”:false,“folderId”:1,“folderUid”:“cne”,“folderTitle”:“CNE”,“folderUrl”:"/dashboards/f/cne/cne"}]
Fixed after making provider names unique in provisioning dashboards config yaml.
provider name