-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRPC interceptor support #8154
Comments
We might need to just update the interface given that the |
I can confirm it is just a case of updating the interface, i have just tested and passing an an interceptor into the options via the
|
Would you like to create a PR to address this issue? |
sure thing, ill get it done either later today or tomorrow. |
Let's track this here #8231 |
This pull request expose interceptors option for grpc but it not pass this options to grpc-js client |
Hi~We have also encountered this problem recently. And we did it according to your method, but this interceptor did not be executed. |
Feature Request
Problem
I have created multiple NestJs servers that communicate via GRPC. When deploying my services with docker i get an intermittent connection issues from GRPC
ECONNRESET [{"message":"14 UNAVAILABLE: read ECONNRESET"}]
. Judging by this issue posted on the@grpc/grpc-node
it seems this is an issue with the library.grpc/grpc-node#1907 (comment)
Solution i would like
Advice i got from posting on the
node-grpc
issue thread was to create an interceptor to retry requests, looking at theGrpcOptions
within nest, nest does not allow for interceptors. A simple way allowing interceptors would be a nice feature to have.information about interceptors can be found here
https://github.com/grpc/proposal/blob/master/L5-node-client-interceptors.md#examples
Teachability, Documentation, Adoption, Migration Strategy
Ideally you would be able to pass interceptors as options like so
What is the motivation / use case for changing the behavior?
Having these sort of intermittent issues that make API calls sporadically fail without a way to easily implement retries isn't great.
The text was updated successfully, but these errors were encountered: