Receiving RST_STREAM with error code 2 while using grpc secure channel
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 716
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 10
Description
### Problem description
We are using grpc to communicate between services. For production deployment, we switched to server authentication. We have a bi-directional streaming grpc service - which expects audio chunks in streaming fashion & sends transcripts as responses in a streaming manner. After getting the final response, we get this error:
`13 INTERNAL: Received RST_STREAM with error code 2`
Wasn't getting this error in case of insecure channel/no authentication. Furthermore, can't find any error on the server side.
### Reproduction steps
Will try to include a repo soon.
### Environment
- OS name, version and architecture: Linux Ubuntu 18.04.2 LTS x86-64
- Node version: v10.19.0
- Package name and version: "@grpc/grpc-js": "1.1.0", "grpc": "1.24.4"
### Additional context
Using AWS grpc load balancer for server. Server code is implemented in python.
Had written a small piece of code to check if this error is encountered in the case of a python client, and we observed that this error is not seen there.
Nodejs client code for initializing the grpc client:
```
const ssl_creds = grpc.credentials.createSsl();
let client = new zapr_speech_proto.Speech(this.server_address, ssl_creds);
```
Contributor guide
Assessment
This issue has not been assessed yet.