Skip to content

Commit 80a75d1

Browse files
authored
[9.3] Fix SSE streaming for Kibana (#257866) (#257918)
# Backport This will backport the following commits from `main` to `9.3`: - [Fix SSE streaming for Kibana (#257866)](#257866) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Pierre Gayvallet","email":"pierre.gayvallet@elastic.co"},"sourceCommit":{"committedDate":"2026-03-16T12:48:00Z","message":"Fix SSE streaming for Kibana (#257866)\n\n## Summary\n\n(Tentatively) fix SSE streaming response being compressed by HAPI (which\ncauses the cloud proxy to buffer them, causing SSE responses to not be\n\"streaming\")","sha":"81737900313e74061f28d1ff77f9f743ef108925","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:cloud-deploy","ci:project-deploy-elasticsearch","backport:version","v9.4.0","v8.19.13","v9.3.3","v9.2.8"],"title":"Fix SSE streaming for Kibana","number":257866,"url":"https://github.com/elastic/kibana/pull/257866","mergeCommit":{"message":"Fix SSE streaming for Kibana (#257866)\n\n## Summary\n\n(Tentatively) fix SSE streaming response being compressed by HAPI (which\ncauses the cloud proxy to buffer them, causing SSE responses to not be\n\"streaming\")","sha":"81737900313e74061f28d1ff77f9f743ef108925"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.3","9.2"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/257866","number":257866,"mergeCommit":{"message":"Fix SSE streaming for Kibana (#257866)\n\n## Summary\n\n(Tentatively) fix SSE streaming response being compressed by HAPI (which\ncauses the cloud proxy to buffer them, causing SSE responses to not be\n\"streaming\")","sha":"81737900313e74061f28d1ff77f9f743ef108925"}},{"branch":"8.19","label":"v8.19.13","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
1 parent f070b21 commit 80a75d1

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
},
7979
"resolutions": {
8080
"**/@babel/parser": "7.24.7",
81+
"**/@hapi/mimos/mime-db": "1.53.0",
8182
"**/@hello-pangea/dnd": "18.0.1",
8283
"**/@langchain/core": "0.3.80",
8384
"**/@langchain/google-common": "0.2.18",

x-pack/platform/plugins/shared/onechat/server/routes/chat.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ export function registerChatRoutes({
449449
'Content-Type': cloud?.isCloudEnabled
450450
? 'application/octet-stream'
451451
: 'text/event-stream',
452+
// another attempt at disabling compression
453+
'Content-Encoding': 'identity',
452454
'Cache-Control': 'no-cache',
453455
Connection: 'keep-alive',
454456
'Transfer-Encoding': 'chunked',

yarn.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26054,7 +26054,12 @@ mime-db@1.52.0:
2605426054
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
2605526055
integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
2605626056

26057-
"mime-db@>= 1.40.0 < 2", mime-db@^1.52.0, mime-db@^1.54.0:
26057+
mime-db@1.53.0, mime-db@^1.52.0:
26058+
version "1.53.0"
26059+
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447"
26060+
integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==
26061+
26062+
"mime-db@>= 1.40.0 < 2", mime-db@^1.54.0:
2605826063
version "1.54.0"
2605926064
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.54.0.tgz#cddb3ee4f9c64530dff640236661d42cb6a314f5"
2606026065
integrity sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==

0 commit comments

Comments
 (0)