Skip to content

TypeError: get_grafana_version() missing 1 required positional argument: 'http_get_headers' #242

@franeksaww

Description

@franeksaww

Hi!
The newest version of Grafana backup doesn't worked for me because of this issue:

There are 0 alert rules:
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_contact_points.py", line 24, in main
grafana_version = get_grafana_version(grafana_url, verify_ssl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get_grafana_version() missing 1 required positional argument: 'http_get_headers'

When I switched to old version 1.3.3 of the package it worked fine.
Looks like the issue is here:
https://github.com/ysde/grafana-backup-tool/blob/master/grafana_backup/save_contact_points.py#L24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions