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

[Bug] invalid character 'þ' looking for beginning of value #977

Open
stuartp44 opened this issue Aug 30, 2024 · 0 comments
Open

[Bug] invalid character 'þ' looking for beginning of value #977

stuartp44 opened this issue Aug 30, 2024 · 0 comments

Comments

@stuartp44
Copy link

stuartp44 commented Aug 30, 2024

Describe the bug

When calling a JSON API where the response is a raw file containing JSON payload the plugin does not handle it very well and throws a strange error that does not help diagnose the issue. The error actually comes through as "error while performing the infinity query. unable to parse response body as JSON. invalid character 'þ' looking for beginning of value" which causes confusion.

This took me a while to see what was the issue here as Postman nicely silently handles it if the file is streamed to me and renders the JSON with no issues. However, infinity on the other hand does not and throws a error as above.

Steps to reproduce

Provide steps to reproduce the issue.

Create new backend JSON query pointing to the AWS Health announcements API aka "https://health.aws.amazon.com/public/currentevents".
Image

Sample Data

This data changes regular, due to the fact its health status orientated.
[]

or when there is something

"codebuild-us-east-1": [
        {
            "arn": null,
            "status": "1",
            "date": "1693492488",
            "event_log": [
                {
                    "message": "We can confirm increased Build error rates in the US-EAST-1 Region. We have identified the root cause and are working toward resolution.",
                    "summary": "Increased Error Rates for Builds",
                    "status": "1",
                    "timestamp": 1693492488
                },
                {
                    "message": "Between 6:30 AM and 7:35 AM PDT we experienced increased Build errors rates in the US-EAST-1 Region. A subset of impacted builds were unable to start execution and thus customers will have seen failed builds that were unable to produce logs. The issue has been resolved and the service is operating normally.",
                    "summary": "[RESOLVED] Increased Error Rates for Builds",
                    "status": "0",
                    "timestamp": 1693494397
                }
            ]
        }
    ]

Screenshots

Image

Version Details:

  • Grafana version : 11.1.4
  • Plugin version : 2.9.5
@stuartp44 stuartp44 changed the title [Bug] Title [Bug] invalid character 'þ' looking for beginning of value Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant