Skip to content
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

Cryptic TLS Error messages #2278

Open
NickOtto-FeyIndustries opened this issue Dec 23, 2024 · 0 comments
Open

Cryptic TLS Error messages #2278

NickOtto-FeyIndustries opened this issue Dec 23, 2024 · 0 comments
Labels

Comments

@NickOtto-FeyIndustries
Copy link

Describe the bug
Newer versions of RestSharp produce cryptic TLS errors when debugging.

To Reproduce
Take any working C# code and manually specify a version of tls protocol to use that is lower than what your system allows (this is for reproducing the error, please don't actually hard code tls security protocols in production).
For example:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11

Expected behavior
Here is the snippet from the stack trace in RestSharp version 106.12.0 that was useful in diagnosing the tls error we encountered:
Exception:Web Exception: The request was aborted: Could not create SSL/TLS secure channel.

Here is a snippet from the stack trace in RestSharp version 112.1.0:
Exception:HTTP Request Error: An error occurred while sending the request.

Desktop

  • OS: Windows 11
  • .NET 4.7.2

The error message in Restsharp 106.12.0 was invaluable in diagnosing error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant