Skip to content

Latest version bug 1.15.1 "invalid character '<' looking for beginning of value" #167

@matanbaruch

Description

@matanbaruch

Chart version 0.8.1, App version 1.15.1

{"time":"2025-07-27T10:33:58.203805457Z","level":"INFO","msg":"Starting artifactory_exporter","version":"(version=v1.15.1, branch=refs/tags/v1.15.1, revision=8fb37cdb73624c7d40f2d980cc2d9603cb1a5948)"}
{"time":"2025-07-27T10:33:58.203902342Z","level":"INFO","msg":"Build context","context":"(go=go1.21.13, user=github-actions, date=2025-02-27T17:08:02Z)"}
{"time":"2025-07-27T10:33:58.203906469Z","level":"INFO","msg":"Listening on address","address":":9531"}
{"time":"2025-07-27T10:34:16.867080884Z","level":"DEBUG","msg":"Fetching openMetrics"}
{"time":"2025-07-27T10:34:16.86711989Z","level":"DEBUG","msg":"Fetching http","path":"https://xxxxxxxx.jfrog.io/artifactory/api/v1/metrics"}
{"time":"2025-07-27T10:34:17.137554805Z","level":"ERROR","msg":"There was an error when trying to unmarshal the API Error","err":"invalid character '<' looking for beginning of value"}
panic: interface conversion: error is *artifactory.UnmarshalError, not *artifactory.APIError

goroutine 39 [running]:
github.com/peimanja/artifactory_exporter/artifactory.(*Client).FetchOpenMetrics(0x400021e1b0)
	/go/artifactory_exporter/artifactory/openmetrics.go:16 +0x1b8
github.com/peimanja/artifactory_exporter/collector.(*Exporter).exportOpenMetrics(0x400022a230, 0x1e830?)
	/go/artifactory_exporter/collector/openMetrics.go:13 +0x34
github.com/peimanja/artifactory_exporter/collector.(*Exporter).scrape(0x400022a230, 0x40000aa0c0?)
	/go/artifactory_exporter/collector/collector.go:146 +0x50

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