The SSL connection could not be established ..... The function requested is not supported #576
Unanswered
pmbaokhanh
asked this question in
Q&A
Replies: 1 comment
-
Please, Checkout #339 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a .net 6 project using this library. Everytime I call zendesk api using the library I have below error, while same credential using postman works. It appears that authentication failed, but I could not find out where I am doing wrong, could you help please?
Code
var api = new ZendeskApi("xxx90260309", "[email protected]", "xxx");
var me = await api.Users.GetCurrentUserAsync();
Stacktrace
[23:48:40 ERR] Message handler faulted
System.Net.WebException: The SSL connection could not be established, see inner exception.Error content:
Resource String: users/me.json +
---> System.Net.WebException: The SSL connection could not be established, see inner exception.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.ComponentModel.Win32Exception (0x80090302): The function requested is not supported
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](
TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClient
AuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClient
AuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(Http
RequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation
1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetry Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessa ge request, HttpCompletionOption completionOption, CancellationTokenSourc e cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action
1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location --- at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable
1 timeout, Dictionary2 formParameters) --- End of inner exception stack trace --- at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable
1 timeout, Dictionary2 formParameters) at ZendeskApi_v2.Core.RunRequestAsync[T](String resource, String requestMethod, Object body, Nullable
1 timeout, Dictionary`2 formParameters)at ZendeskApi_v2.Core.GenericGetAsync[T](String resource)
at ZendeskApi_v2.Requests.Users.GetCurrentUserAsync()
Beta Was this translation helpful? Give feedback.
All reactions