-
Notifications
You must be signed in to change notification settings - Fork 240
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
Unable to parse response body with bad characters #294
Comments
Parsing with Oj doesn't seem to give this error. Making the switch might be a convenient fix for this. JSON
Oj
|
hmmm this seems to be a more general problem
does not work either |
so prefer to open an issue with jenkins + make sure jenkins is up to date and then see what they say about this issue ... can you reliably reproduce this or is this randomly happening or at a random position in the reply ? |
I'm experiencing a
JSON::ParserError
because of a bad character (in my case it's0x1b
):Here's the stack trace that showed me where the issue was:
This is the
JSON.parse
we're hitting ...jenkins_api_client/lib/jenkins_api_client/client.rb
Lines 807 to 816 in 72f49f2
I've been able to replicate using this file (jenkins-log-with-bad-character.txt):
The text was updated successfully, but these errors were encountered: