ysde / grafana-backup-tool

A Python-based application to backup Grafana settings by using the Grafana API
MIT License
877 stars 277 forks source link

fix KeyError: 'folderUid' while restoring #179

Closed israelshenkar closed 1 year ago

israelshenkar commented 2 years ago

@ysde

israelshenkar commented 2 years ago

https://github.com/ysde/grafana-backup-tool/issues/178

ysde commented 2 years ago

Hi @israelshenkar I think this PR might not be an appropriate change.

https://grafana.com/docs/grafana/v8.2/http_api/dashboard/ it needs either folderUid or folderId , maybe in your case, you don't have folderUid when you export your grafana.

israelshenkar commented 2 years ago

Hi @ysde i was exporting grafana in version 7....

acjohnson commented 2 years ago

@israelshenkar could you please share your specific Grafana version and perhaps full stack trace of when you received this error? Thanks!