You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Attempting to load an invalid proto file with the gRPC microservice client and server results in a generic error: Error: The invalid .proto definition (file not found).
Expected behavior
If gRPC load method throws an error, wrap it with the NestJS InvalidProtoDefinitionException but maintain the message from the gRPC exception. These exceptions typically provide a lot more information such as the service or message that is invalid.
Minimal reproduction of the problem with instructions
Use sample/04-grps and change the src/hero/hero.proto file to the below:
syntax = "proto3";
package hero;
service HeroService {
rpc FindOne (HeroBy) returns (Hero) {}
}
message HeroById {
int32 id = 1;
}
message Hero {
int32 id = 1;
string name = 2;
}
Notice I have declared a service that takes in a message that is not defined.
What is the motivation / use case for changing the behavior?
Better error messaging to developers while developing gRPC microservices.
Environment
Nest version: 5.0.1
For Tooling issues:
- Node version: 8.11.3
- Platform: Windows 10 Pro
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
Attempting to load an invalid proto file with the gRPC microservice client and server results in a generic error:
Error: The invalid .proto definition (file not found)
.Expected behavior
If gRPC
load
method throws an error, wrap it with the NestJSInvalidProtoDefinitionException
but maintain the message from the gRPC exception. These exceptions typically provide a lot more information such as the service or message that is invalid.Minimal reproduction of the problem with instructions
Use
sample/04-grps
and change thesrc/hero/hero.proto
file to the below:Notice I have declared a service that takes in a message that is not defined.
What is the motivation / use case for changing the behavior?
Better error messaging to developers while developing gRPC microservices.
Environment
The text was updated successfully, but these errors were encountered: