Skip to content

TypeError: string indices must be integers, not 'str' #293

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

Open
bimax opened this issue May 26, 2025 · 0 comments
Open

TypeError: string indices must be integers, not 'str' #293

bimax opened this issue May 26, 2025 · 0 comments

Comments

@bimax
Copy link

bimax commented May 26, 2025

I am trying to make a backup for my grafana and using docker-grafana-backup-tool:1.4.2 image for my grafana running in kubernetes rom helmchart 8.13.1 but I ma getting this error after 3 minutes of running through the follow error which looks like a code problem.

found 2 versions for dashboard 422 Errors
Traceback (most recent call last):
  File "/usr/bin/grafana-backup", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/grafana_backup/cli.py", line 52, in main
    save(args, settings)
  File "/usr/lib/python3.11/site-packages/grafana_backup/save.py", line 74, in main
    backup_functions[backup_function](args, settings)
  File "/usr/lib/python3.11/site-packages/grafana_backup/save_dashboard_versions.py", line 24, in main
    save_dashboard_versions(folder_path, log_file, grafana_url, http_get_headers, verify_ssl, client_cert, debug, pretty_print, uid_support)
  File "/usr/lib/python3.11/site-packages/grafana_backup/save_dashboard_versions.py", line 38, in save_dashboard_versions
    get_versions_and_save(dashboards, folder_path, log_file, grafana_url, http_get_headers, verify_ssl, client_cert, debug, pretty_print, uid_support)
  File "/usr/lib/python3.11/site-packages/grafana_backup/save_dashboard_versions.py", line 52, in get_versions_and_save
    get_individual_versions(content, board_folder_path, log_file, grafana_url, http_get_headers, verify_ssl, client_cert, debug, pretty_print)
  File "/usr/lib/python3.11/site-packages/grafana_backup/save_dashboard_versions.py", line 60, in get_individual_versions
    (status, content) = get_version(version['dashboardId'], version['version'], grafana_url, http_get_headers, verify_ssl, client_cert, debug)
                                    ~~~~~~~^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
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

No branches or pull requests

1 participant