Hi,
Please go through the below exception and suggest the resolution of this error.
- Happens only when calling any API and only in Android. Works in iOS without any exceptions.
- Using XF v4.0.30319
Approaches tried:
As mentioned in some forums, tried to change the HTTPClient of Android project to Android but didn't worked out.
Attached the complete exception
08-20 09:46:34.678 E/mono (13095): Unhandled Exception:
08-20 09:46:34.678 E/mono (13095): System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: TrustFailure (A call to SSPI failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
08-20 09:46:34.678 E/mono (13095): at /Users/builder/jenkins/workspace/xamarin-android-d15-8/xamarin-android/external/mono/external/boringssl/ssl/handshake_client.c:1132
08-20 09:46:34.678 E/mono (13095): at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00038] in :0
08-20 09:46:34.678 E/mono (13095): at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in :0
08-20 09:46:34.678 E/mono (13095): at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus)
08-20 09:46:34.678 E/mono (13095): at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in :0
08-20 09:46:34.678 E/mono (13095): at Mono.Net.Security.AsyncProtocolRequest+d__24.MoveNext () [0x000ff] in :0
08-20 09:46:34.678 E/mono (13095): --- End of stack trace from previous location where exception was thrown ---
08-20 09:46:34.678 E/mono (13095): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <43dbbdc147f2482093d8409abb04c233>:0
08-20 09:46:34.678 E/mono (13095): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <43dbbdc147f2482093d8409abb04c233>:0
08-20 09:46:34.678 E/mono (13095): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <43dbbdc147f2482093d8409abb04c233>:0
08-20 09:46:34.678 E/mono (13095): at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <43dbbdc147f2482093d8409abb04c233>:0
08-20 09:46:34.678 E/mono (13095): at Mono.Net.Security.AsyncProtocolRequest+d__23.MoveNext () [0x0008b] in :0
08-20 09:46:34.678 E/mono (13095): --- End of inner exception stack trace ---