-
Notifications
You must be signed in to change notification settings - Fork 215
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] ERROR org.opensearch.dataprepper.plugins.source.loghttp.LogHTTPService - Failed to parse the request of size XXX due to: Unrecognized token #3865
Comments
@canob , Do you have any full examples with the full request? It appears from the sizes that only part of the message is invalid. There appears to be an invalid token in the request. See this message: Also what is sending the data to Data Prepper? Is it FluentBit? |
Also, from the error log, it appears that the JSON parser has already found a key. It is expecting a JSON value. Is it possible you might have the value e.g.
|
We may want to consider having configurations in Data Prepper to make JSON processing more lenient. For example, Jackson does support non-numeric numbers which may be the problem in this specific case. |
Hi @dlvenable. Thanks for your replies.
Maybe I can try to change the output format for HTTP on FluentBit to json_stream or json_lines, https://docs.fluentbit.io/manual/pipeline/outputs/http (I don't remember if I already tried that and was not working). Let me know if I can provide additional information. Thanks. |
Hi @dlvenable I still having issues with this, and I didn't find a way to solve it. I still receiving that kind of error logs from time to time:
Is there a way to enable some additional debugging level on the logs, to see the complete JSON objects that are generating that errors on the log? Thanks. |
Describe the bug
After a while that is running, Data Prepper is starting to generate these lines on the log:
To Reproduce
yaml config file:
Expected behavior
After that errors on the log, the file is not being written anymore.
Environment (please complete the following information):
Can anyone explain to me what that error is saying, and how can I correct it?
The text was updated successfully, but these errors were encountered: