Skip to content

Conversation

valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Oct 9, 2025

Added detailed information about token types and stream state during JSON parsing errors.

When you encounter the error now, you'll get detailed information like:

JSON state must be object at root. Found token type: string (value: 6), isArrayOfObjects: false, isEof: false, stream state - bad: false, fail: false, eof: false, bytes remaining: 15, buffer position: 0

This will help you understand:

  • What type of JSON content was actually found (string, number, boolean, etc.)
  • Stream health - whether the input stream is corrupted
  • Buffer state - how much data was read and where the parser was positioned
  • Parsing context - whether it was expecting an array of objects or a single object

… debugging.

Added detailed information about token types and stream state during JSON parsing errors.
@prodsecmachine
Copy link

prodsecmachine commented Oct 9, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@valeriy42 valeriy42 marked this pull request as ready for review October 9, 2025 13:07
@valeriy42 valeriy42 requested a review from davidkyle October 9, 2025 13:08
Copy link

@valeriy42 valeriy42 merged commit 7359168 into elastic:main Oct 20, 2025
15 checks passed
@valeriy42 valeriy42 deleted the bug/root10-state-restore-failure branch October 20, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants