Skip to content

Commit e7db3fe

Browse files
authored
fix(clickhouse-driver): Parse Error: Header overflow due to X-ClickHouse-Progress (#9842)
To fix the issue with the headers overflowing: Error: Parse Error: Header overflow at TLSSocket.socketOnData (node:_http_client:551:22) at TLSSocket.emit (node:events:519:28) at addChunk (node:internal/streams/readable:559:12) at readableAddChunkPushByteMode (node:internal/streams/readable:510:3) More details in the original repository of the client library: ClickHouse/clickhouse-js#448
1 parent 95dc46e commit e7db3fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
173173
request: getEnv('clickhouseCompression', { dataSource }),
174174
},
175175
clickhouseSettings: {
176+
/// Default Node.js client has a limit for the max size of HTTP headers. In practise, such headers can be extremely large
177+
/// Let's disable it, because we don't need them.
178+
send_progress_in_http_headers: 0,
176179
// If ClickHouse user's permissions are restricted with "readonly = 1",
177180
// change settings queries are not allowed. Thus, "join_use_nulls" setting
178181
// can not be changed

0 commit comments

Comments
 (0)