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