Skip to content

Commit 34bc5f5

Browse files
try with modified undici agent tls config
1 parent 967cedc commit 34bc5f5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/orkes/helpers/resolveFetchFn.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export const resolveFetchFn = async (
1919
//keepAliveTimeout: 500,
2020
//clientTtl: 500,
2121
//keepAliveMaxTimeout: 1000 * 60 * 10,
22+
//pipelining: 1,
23+
connect: {
24+
rejectUnauthorized: true, // Ensure TLS validation
25+
secureProtocol: "TLSv1_2_method", // Use TLS 1.2
26+
},
2227
}).compose(
2328
interceptors.retry({
2429
maxRetries: 10, // Maximum number of retries (default: 5)

0 commit comments

Comments
 (0)