diff --git a/packages/client-node/src/connection/node_base_connection.ts b/packages/client-node/src/connection/node_base_connection.ts index d17dfc8..eaf08f1 100644 --- a/packages/client-node/src/connection/node_base_connection.ts +++ b/packages/client-node/src/connection/node_base_connection.ts @@ -474,7 +474,11 @@ export abstract class NodeBaseConnection responseStream = _response } if (isFailedResponse) { - reject(parseError(await getAsText(responseStream))) + try { + reject(parseError(await getAsText(responseStream))) + } catch (err) { + reject(err) + } } else { return resolve({ stream: responseStream,