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.
1 parent d8e73f3 commit 81e08e8Copy full SHA for 81e08e8
packages/grpc-js/src/channel.ts
@@ -466,9 +466,9 @@ export class ChannelImplementation implements Channel {
466
callConfig.onCommitted?.();
467
pickResult.onCallStarted?.();
468
} catch (error) {
469
- if (
470
- (error as NodeJS.ErrnoException).code ===
471
- 'ERR_HTTP2_GOAWAY_SESSION'
+ const errorCode = (error as NodeJS.ErrnoException).code;
+ if (errorCode === 'ERR_HTTP2_GOAWAY_SESSION' ||
+ errorCode === 'ERR_HTTP2_INVALID_SESSION'
472
) {
473
/* An error here indicates that something went wrong with
474
* the picked subchannel's http2 stream right before we
0 commit comments