-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
X-pack licensing plugin issues too many duplicate requests on page load #79618
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
Not really. We are using pooling and manual triggers to stay sync with the server's state. However having 7 requests during startup seems a lot. @restrry I guess it is not expected? Do you know what could cause that? |
it's actually 9 requests on page load in above example :) Alright i was not aware of pooling to sync with server state. |
no, it's not expected behaviour. We even have a test to ensure we do not over-fetch
The root problem is Observability plugin uses kibana/src/core/public/http/types.ts Line 263 in 0d45d9b
Because response doesn't contain kbn-license-sig header, this condition gives a false positive
We should:
|
Honestly, we should probably throw an error. I'm surprised this works tbh. There are a lot of assumptions in that service and registered interceptors that this is only used for requests against Kibana's backend. |
Kibana version:
Master
Original install method (e.g. download page, yum, from source, etc.):
Source
Describe the bug:
When for example Observability homepage is loaded, it has too many requests for licensing info originating from
x-pack/licensing
plugin.In below example there are 9 xhr requests for same api.
This is the URL it calls
http://localhost:5601/api/licensing/info
There should be only one request to get license info.
The text was updated successfully, but these errors were encountered: