Evernote / evernote-sdk-android

Evernote SDK for Android
428 stars 168 forks source link

OAuthConnectionException: There was a problem while creating a connection to the remote service. #70

Open wangsuicheng opened 3 years ago

wangsuicheng commented 3 years ago

2020-11-21 19:01:05.454 2403-5825/AndroidRuntime: FATAL EXCEPTION: pool-16-thread-1 org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service. at org.scribe.model.Request.send(SourceFile:3) at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(SourceFile:10) at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(SourceFile:1) at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(SourceFile:2) at com.evernote.client.android.EvernoteOAuthHelper.createRequestToken(SourceFile:1) at com.evernote.client.android.EvernoteOAuthHelper.startAuthorization(SourceFile:2) at com.evernote.client.android.login.EvernoteLoginTask.startAuthorization(SourceFile:20) at com.evernote.client.android.login.EvernoteLoginTask.execute(SourceFile:2) at com.evernote.client.android.login.EvernoteLoginTask.execute(SourceFile:1) at net.vrallev.android.task.Task.executeInner(SourceFile:1) at net.vrallev.android.task.TaskExecutor$b.run(SourceFile:1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) Caused by: javax.net.ssl.SSLHandshakeException: Chain validation failed at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:231) at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:196) at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:153)

com.evernote.client.android.EvernoteSession#authenticate(android.support.v4.app.FragmentActivity) will crash app if occur above OAuthConnectionException.