From 5ecf1f81d1d7e7295c5acc4ad71841f78b4c779f Mon Sep 17 00:00:00 2001 From: fumer-fubotv <89787347+fumer-fubotv@users.noreply.github.com> Date: Tue, 9 May 2023 12:08:18 -0700 Subject: [PATCH] TBD-67: roku-deploy: fix nodejs 19 bug 'Request' module post requests fail with Nodejs v19 and up. To make it compatible with newer versions of node simply pass the following config values to the request apis to overcome socket error: agentOptions: { 'keepAlive': false } --- src/RokuDeploy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RokuDeploy.ts b/src/RokuDeploy.ts index 545581a..6ecaccc 100644 --- a/src/RokuDeploy.ts +++ b/src/RokuDeploy.ts @@ -382,7 +382,8 @@ export class RokuDeploy { pass: options.password, sendImmediately: false }, - formData: formData + formData: formData, + agentOptions: { 'keepAlive': false } }; return baseRequestOptions; }