-
Notifications
You must be signed in to change notification settings - Fork 967
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] Hard Reload when a Incorrect API is executed from the Dev Tools #4541
Comments
@kristenTian could you verify if this issue is due to MD update new client? |
@Utkarsh-Aga |
Hello @zhongnansu, I tried using the OSD v2.8 and the error message seems to be preserved, but for the Amazon OpenSearch Service Managed Cluster this does not seems to be the case. |
Confirming that OSS side doesn't have the issue, no matter version. Issue might only be related to Amazon OpenSearch Service. For that I suggest you reach out to their customer support to report the issue |
it shouldn't be |
this happens because of this line in security dashboards, all requests are intercepted and triggers this callback, to ask user to log-in if response is 401 it doesn't seem to happen in OSS because devtool returns 405 instead of 401. If a request returns 401, doesn't matter in devtools or AOS or OSS, OSD should refresh but it's weird why in 2.3.0 the response is 401 but OSD didn't refresh, did devtools recently switched to use the core http client? |
|
i see, seems #3080 triggered the issue probably the fix is to make sure 401 responses curl -XPOST localhost:9200/_cluster/settings
{"error":"Incorrect HTTP method for uri [/_cluster/settings] and method [POST], allowed: [GET, PUT]","status":405} so need to find what changed it |
Thanks @joshuali925, this status code changes seems a specific change with AOS then. |
Closing the issue, please follow up with Amazon OpenSearch Service with the above investigation context. |
Describe the bug
Hello Team, Starting from the OSD v2.5.0, in the Dev Tools when an Invalid/Incorrect API is executed from the Dev Tools, there is a hard reload of the page, which causes the actual error getting vanished quickly causing uncertainty with the end user.
To Reproduce
Go to the Dev Tools.
POST _cluster/settings
]_dashboards/app/dev_tools#/console
can be observed.Expected behavior
Ideally, if the user is running the API which is incorrect, the actual error message should be displayed as observed in OSD v2.3
Dashboards Version
Observed issue with OSD v2.5.0 and v.2.7.0
OSDv2.7.mov
The behaviour was expected with OSD v.2.3.0, as observed below -
OSDv2.3.mov
The text was updated successfully, but these errors were encountered: