We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69482b2 + 8f668c8 commit c3fc579Copy full SHA for c3fc579
packages/grpc-js/src/server-call.ts
@@ -346,8 +346,11 @@ export class Http2ServerCallStream<
346
super();
347
348
this.stream.once('error', (err: ServerErrorResponse) => {
349
- err.code = Status.INTERNAL;
350
- this.sendError(err);
+ /* We need an error handler to avoid uncaught error event exceptions, but
+ * there is nothing we can reasonably do here. Any error event should
351
+ * have a corresponding close event, which handles emitting the cancelled
352
+ * event. And the stream is now in a bad state, so we can't reasonably
353
+ * expect to be able to send an error over it. */
354
});
355
356
this.stream.once('close', () => {
0 commit comments