“Error loading data” error observed in kibana when keycloak token expires

Hi ,

We are using keycloak openid authentication in kibana.
When Kibana session remains idle for sometime (3mins) and keycloak token expires (token life span is 2 mins) in between that, after that if the user try to do filter on discover page based on a particular time period then the error pop up “Error loading data”.But manually refreshing the page can recover the access, and load the logs"

TypeError: Failed to fetch
at Fetch._callee3$ (https://ip/baseurl/port/bundles/commons.bundle.js:9:1989293)
at l (https:/ip/baseurl/port/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969217)
at Generator._invoke (https:/ip/baseurl/port/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:968970)
at Generator.forEach.e. [as throw] (https:/ip/baseurl/port/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969574)
at asyncGeneratorStep (https:/ip/baseurl/port/bundles/commons.bundle.js:9:1983787)
at _throw (https://ip/baseurl/port/bundles/commons.bundle.js:9:1984184)

When checked Elasticsearch client logs it says : “log”:“No ‘Basic Authorization’ header, send 401 and ‘WWW-Authenticate Basic’”}

The expectation is it should be redirected to the login page when the keycloak token gets expires.

Hi @mohitj252

What ODFE version do you use?

Hi, we are using od 1.19 and elastic search version is 7.8.0

Any updates please.
Thanks in Advance

Any updates please.
Thanks in Advance

We are also facing same issue when openid_authentication is enabled.
Versions used: Elasticsearch-7.10.2, ODFE-1.13.1

Any updates on fix plan for this?