Skip to content

Commit 51fbd96

Browse files
committed
Explicitly ignoring a 429 from triggering a license refresh
1 parent 12441f5 commit 51fbd96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/licensing/server/on_pre_response_handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function createOnPreResponseHandler(
1717
// Elasticsearch in case the error is due to a change in license information
1818
// in Elasticsearch.
1919
// https://github.com/elastic/x-pack-kibana/pull/2876
20-
if (res.statusCode >= 400) {
20+
if (res.statusCode >= 400 && res.statusCode !== 429) {
2121
await refresh();
2222
}
2323
const license = await license$.pipe(take(1)).toPromise();

0 commit comments

Comments
 (0)