opensearch-project / dashboards-query-workbench

The OpenSearch Dashboards Query Workbench enables you to query your OpenSearch data using either SQL or PPL
Apache License 2.0
7 stars 30 forks source link

[BUG] Unable to handle get async query result #419

Open noCharger opened 1 week ago

noCharger commented 1 week ago

What is the bug?

https://github.com/opensearch-project/dashboards-query-workbench/blame/70742b8cd3d0f3bbec2373366673703b337a29a3/common/utils/async_query_helpers.ts#L82-L137

When API returned the following response:

"{\n "status": 500,\n "error": {\n "type": "SemanticCheckException",\n "reason": "There was internal problem at backend",\n "details": "timestamp:2010-02-11 in unsupported format, please use \u0027yyyy-MM-dd HH:mm:ss[.SSSSSSSSS]\u0027"\n }\n}"

query workbench returned:

Failed to query status

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Go to query workbench
  2. Click to select any data source
  3. Type select date('2010-02-11')
  4. See error

What is the expected behavior? Show detailed error message or a general message like "There was internal problem at backend"

Do you have any screenshots?

Screenshot 2024-11-13 at 16 34 58

Do you have any additional context? https://github.com/opensearch-project/opensearch-spark/issues/875