opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.7k stars 898 forks source link

[BUG] Failed to fetch error on Discover page #6802

Open saketmht opened 6 months ago

saketmht commented 6 months ago

Describe the bug

We have OS and OSD setup on k8s with Keycloak. The OSD Discover page seems to work fine for around 30 mins before it starts giving failed to fetch error when using the search. We have to refresh the page everytime to get it back to normal and after a while again the same issue happens.

TypeError: Failed to fetch
    at Fetch._callee3$ (https://osd.vmi.system.shoe.v8o.com/34/bundles/core/core.entry.js:15:583674)
    at tryCatch (https://osd.vmi.system.shoe.v8o.com/34/bundles/plugin/indexManagementDashboards/indexManagementDashboards.plugin.js:1:138399)
    at Generator.invoke [as _invoke] (https://osd.vmi.system.shoe.v8o.com/34/bundles/plugin/indexManagementDashboards/indexManagementDashboards.plugin.js:1:142350)
    at Generator.throw (https://osd.vmi.system.shoe.v8o.com/34/bundles/plugin/indexManagementDashboards/indexManagementDashboards.plugin.js:1:139538)
    at fetch_asyncGeneratorStep (https://osd.vmi.system.shoe.v8o.com/34/bundles/core/core.entry.js:15:577704)
    at _throw (https://osd.vmi.system.shoe.v8o.com/34/bundles/core/core.entry.js:15:578112)

This issue is mostly seen with larger indices.

To Reproduce Steps to reproduce the behavior:

  1. Go to Discover page
  2. Perform some searches
  3. After 30-60mins
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

OpenSearch Version 2.3.0

Dashboards Version 2.3.0

Plugins

Please list all plugins currently enabled.

Screenshots

image (4)

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

huyaboo commented 6 months ago

So after the 30 minutes, if you refreshed the page, are you forced to reauthenticate? If yes, its likely that your session has timed out.