diff --git a/packages/taler-util/src/http-impl.node.ts b/packages/taler-util/src/http-impl.node.ts index 8f215e596..798b81e2d 100644 --- a/packages/taler-util/src/http-impl.node.ts +++ b/packages/taler-util/src/http-impl.node.ts @@ -170,6 +170,10 @@ export class HttpLibImpl implements HttpRequestLibrary { throw new Error(`unsupported protocol ${options.protocol}`); } + req.on("error", (e: Error) => { + reject(e); + }); + if (reqBody) { req.write(new Uint8Array(reqBody)); }