Skip to content
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

Cannot unmarshal number into Go struct field ZabbixDatasourceSettingsDTO.timeout of type string #1254

Closed
along0101 opened this issue Aug 5, 2021 · 3 comments

Comments

@along0101
Copy link

when i use grafana and set zabbix datasource,notice that:
json: cannot unmarshal number into Go struct field ZabbixDatasourceSettingsDTO.timeout of type string

Isn't it a bug?

zabbix5.4,grafana8+

@alexanderzobnin
Copy link
Collaborator

Hi! Can you check it against plugin 4.2.1? Can't replicate this.

@alexanderzobnin alexanderzobnin changed the title Isn't it a bug? Cannot unmarshal number into Go struct field ZabbixDatasourceSettingsDTO.timeout of type string Aug 11, 2021
@alexanderzobnin
Copy link
Collaborator

Confirmed

@alexanderzobnin alexanderzobnin added this to the 4.2.2 milestone Aug 11, 2021
@alexanderzobnin
Copy link
Collaborator

Bug caused by "Timeout" field introduced in recent Grafana. This field overlaps with the existing timeout field in the data source settings. Fields have different type (number vs string) and it causes an error when timeout set in the HTTP section. Workaround: set timeout in Zabbix API details section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants