File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
dev-packages/node-integration-tests/utils Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- import type * as http from 'http' ;
1
+ import * as http from 'http' ;
2
2
import type { AddressInfo } from 'net' ;
3
3
import * as path from 'path' ;
4
4
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
@@ -212,7 +212,11 @@ export class TestEnv {
212
212
endServer : boolean = true ,
213
213
) : Promise < unknown > {
214
214
try {
215
- const { data } = await axios . get ( url || this . url , { headers } ) ;
215
+ const { data } = await axios . get ( url || this . url , {
216
+ headers,
217
+ // KeepAlive false to work around a Node 20 bug with ECONNRESET: https://github.com/axios/axios/issues/5929
218
+ httpAgent : new http . Agent ( { keepAlive : false } ) ,
219
+ } ) ;
216
220
return data ;
217
221
} finally {
218
222
await Sentry . flush ( ) ;
You can’t perform that action at this time.
0 commit comments