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
Provide API to pass TLS / Certificate issues to C# code #16480
Comments
Dealing with gRPC errors in C# is extremely confusing. This is a well documented example. |
This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 180 days. It will be closed automatically if no further update occurs in 1 day. Thank you for your contributions! |
You can enable extra logging (which will likely give you some indication of what went wrong) by following https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md |
While extra logging is certainly interesting during development and when getting logs from production environments, logs do not help my code to tell the user (via UI, SNMP, ...) about what went wrong. |
@yihuazhang any ideas how we could better surface the TLS problems to wrapped languages? I agree the current error messages are cryptic (see examples above) |
I originally thought we could surface TLS related error messages from TSI layer all the way to gRPC users, but it turns out requiring changes to TSI API's ( @markdroth @jiangtaoli2016 HDYT? |
I think it would be better to change the TSI APIs to return real errors. To be honest, I have always felt that |
This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 180 days. It will be closed automatically if no further update occurs in 1 day. Thank you for your contributions! |
What version of gRPC and what language are you using?
gRPC version 1.14.1
C# on .NET 4.7.1 on Windows, C# on Mono 5.14.0.177 on CentOS 7
What operating system (Linux, Windows, …) and version?
Windows & Linux (CentOS)
What runtime / compiler are you using (e.g. python version or version of gcc)
.NET 4.7.1
Mono 5.14.0.177
What did you do?
Test various error scenarios where gRPC calls using TLS / X.509 will fail.
What did you expect to see?
gRPC library telling my code what has failed and why.
What did you see instead?
Anything else we should know about your project / environment?
Problem:
Solution (Feature Request):
Examples:
The text was updated successfully, but these errors were encountered: