grpc / grpc/grpc-node

[grpc-js] Error: 13 INTERNAL: Received RST_STREAM with code 0

Open
#1,532 22 comments 28 reactions 0 assignees View on GitHub
package: @grpc/grpc-js
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

### Problem description

`grpc-js` client is throwing the following exception under high load:

```cli
ERROR Error: 13 INTERNAL: Received RST_STREAM with code 0
at Object.callErrorFromStatus (/repro/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/repro/node_modules/@grpc/grpc-js/build/src/client.js:176:52)
at Object.onReceiveStatus (/repro/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:342:141)
at Object.onReceiveStatus (/repro/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:305:181)
at Http2CallStream.outputStatus (/repro/node_modules/@grpc/grpc-js/build/src/call-stream.js:117:74)
at Http2CallStream.maybeOutputStatus (/repro/node_modules/@grpc/grpc-js/build/src/call-stream.js:156:22)
at Http2CallStream.endCall (/repro/node_modules/@grpc/grpc-js/build/src/call-stream.js:142:18)
at ClientHttp2Stream. (/repro/node_modules/@grpc/grpc-js/build/src/call-stream.js:420:22)
at ClientHttp2Stream.emit (events.js:314:20)
at emitCloseNT (internal/streams/destroy.js:81:10) {
code: 13,
details: 'Received RST_STREAM with code 0',
metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}
```

### Reproduction steps

I have a repro repository in the works and will update with the link.

### Environment
- OS name, version and architecture: macOS Big Sur v11.0 [20A5343j]
- Node version: **v14.7.0** (seems to be irrelevant, also reproduces with **v10.22.0** and **v12.18.3**
- Node installation method: [nvs](https://github.com/jasongin/nvs)
- If applicable, compiler version: n/a
- Package name and version: **grpc-js v1.1.3**

### Additional context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.