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] Dev Tools Get _nodes with YAML crashes Dashboards #8243

Open
landon-lengyel opened this issue Sep 19, 2024 · 1 comment
Open

[BUG] Dev Tools Get _nodes with YAML crashes Dashboards #8243

landon-lengyel opened this issue Sep 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@landon-lengyel
Copy link

Describe the bug
GET _nodes?format=yaml crashes OpenSearch Dashboards due to the YAML formatting. Other API calls with YAML seem to work fine.

The error thrown is: JSON.parse: bad escaped character at line 1 column 65 of the JSON data

To Reproduce
Steps to reproduce the behavior:

  1. Go to Dev Tools
  2. Run the API call: GET _nodes?format=yaml

Expected behavior
Output the nodes in YAML format.

OpenSearch Version
2.17.0 (existed in last major version(s) as well)

Dashboards Version
2.17.0

Plugins

Screenshots

Host/Environment (please complete the following information):

  • OS: Windows 11
  • Browser and version: Firefox 130.0.1

Additional context
Full error:

parse@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/opensearchUiShared/opensearchUiShared.plugin.js:1:71418
expandLiteralStrings@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/opensearchUiShared/opensearchUiShared.plugin.js:1:73272
56/EditorOutputUI/<@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/console/console.chunk.2.js:1:328310
os@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:83209
gc@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:102288
__osdSharedDeps__</t.unstable_runWithPriority@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:443:3844
Xo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45024
bc@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:102047
Qs@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:93596
Vo/<@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45315
__osdSharedDeps__</t.unstable_runWithPriority@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:443:3844
Xo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45024
Vo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45262
Yo@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:45195
$s@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:90458
ba@https://opensearch01.slcsd.net:5601/7946/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:62277
56/useSendCurrentRequestToOpenSearch/<@https://opensearch01.slcsd.net:5601/7946/bundles/plugin/console/console.chunk.2.js:1:257056
@landon-lengyel landon-lengyel added bug Something isn't working untriaged labels Sep 19, 2024
@dblock dblock removed the untriaged label Oct 7, 2024
@dblock
Copy link
Member

dblock commented Oct 7, 2024

[Catch All Triage - 1, 2, 3, 4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants