-
Notifications
You must be signed in to change notification settings - Fork 920
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] JSON parsing issue in Discover since upgrade to v2.12 #5923
Comments
We were able to track down the issue to parseStringWithLongNumerals (https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/packages/osd-std/src/json.ts#L111) in particular in this line https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/packages/osd-std/src/json.ts#L119 The regex is matching a Long Numeral in our raw message. It adds the marker but doesn't remove it afterward resulting in a wrongly formatted JSON. Find it below: I think it could interest you @AMoo-Miki |
This is a problem with long numerals handling in |
This issue still occurs for me on Brave, even after applying the fix in #5956, presumably due to the added regex not matching the error message's exact wording. The contents of Changing the regex in
expected .*at line (\d+) column (\d+)(\s|$) to [Ee]xpected .*line (\d+) column (\d+)(\s|$|\)) causes the parsing to work as expected.This regex also seems to still match the error message in #6017, with the example document there exhibiting the correct behavior after applying the above-mentioned change. |
Is there a way to workaround this error I can do to get my logs to show . Thanks |
@3ster thanks for your help here. I have made a more generalized set of regexs for this but am having trouble finding a way to test them. Do you have a piece of data that fails normally for you that I can use to test? |
Yes, the snippet in #6017 consistently triggers this behavior:
I've also noticed that this issue manifests in Safari in a different way, resulting in |
Describe the bug
We upgraded our OpenSearch cluster from version v2.11.1 to v2.12.0. Since then, for one of our index pattern we are not able to retrieve the entries in Discover. We are getting a red toast notification containing "Expected ',' or '}' after property value in JSON at position 3045 (line 1 column 3046)"
When looking at the network request in the browser console, we can see that OpenSearch returned the expected response. (I can share the JSON through more restricted channels if needed):
I tried also to replay the query in OpenSearch console with a similar behaviour. I have an exception even if the expected data from Opensearch is here:
I looked in Opensearch and Opensearch dashboards logs but I did not find any useful message to help troubleshooting this issue.
We are able to make queries log explorer using PPL without issue.
Expected behavior
A clear and concise description of what you expected to happen.
OpenSearch Version
2.12.0
Dashboards Version
2.12.0
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: