Skip to content

fix(inputs.redfish): Add URL and content type to JSON parse error#19295

Open
skartikey wants to merge 1 commit into
influxdata:masterfrom
skartikey:fix/redfish-parse-error-context
Open

fix(inputs.redfish): Add URL and content type to JSON parse error#19295
skartikey wants to merge 1 commit into
influxdata:masterfrom
skartikey:fix/redfish-parse-error-context

Conversation

@skartikey

@skartikey skartikey commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

When a Redfish endpoint returns a non-JSON body (for example a BMC serving an HTML web-UI or login page, or a proxy returning an HTML error page), the plugin failed with a bare error parsing input: invalid character '<' looking for beginning of value that did not say which of its several per-gather requests failed or what the body was.

This wraps the parse error with the request URL and the response Content-Type, matching the address-in-error style already used for the status-code check, so the failing request and its actual content type are visible without extra debugging.

Checklist

Related issues

related to #19289

@telegraf-tiger telegraf-tiger Bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Jul 17, 2026
@telegraf-tiger

Copy link
Copy Markdown
Contributor

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

Labels

fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant