I'm trying to use your plugins inside my quasar project + cordova.
I've initialize the channel_id on mounted() as follow
`mounted() {
document.addEventListener('deviceready', onDeviceReady, false)
function onDeviceReady() {
lineLogin.initialize({ channel_id: '1655706086' })
}
},`
then i have method liek the following
onLineLogin() { lineLogin.login( function(result) { console.log(result) // {userID:12345, displayName:'user name', pictureURL:'thumbnail url'} }, function(error) { console.log(error) }, ) },
when i run it on emulator. try to initiate the onLineLogin method, i got the following error
{ "code": -2, "sdkErrorCode": "NETWORK_ERROR", "description": "LineLoginResult{responseCode=NETWORK_ERROR, nonce='null', lineProfile=null, lineIdToken=null, friendshipStatusChanged=null, lineCredential=null, errorData=LineApiError{httpResponseCode=-1, message='javax.net.ssl.SSLHandshakeException: Chain validation failed\n\tat com.android.org.conscrypt.SSLUtils.toSSLHandshakeException(SSLUtils.java:363)\n\tat com.android.org.conscrypt.ConscryptEngine.convertException(ConscryptEngine.java:1134)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1089)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:876)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:747)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:712)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:858)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.access$100(ConscryptEngineSocket.java:731)\n\tat com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:241)\n\tat com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:220)\n\tat com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:196)\n\tat com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:153)\n\tat com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116)\n\tat com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186)\n\tat com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128)\n\tat com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)\n\tat com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289)\n\tat com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232)\n\tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465)\n\tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)\n\tat com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:90)\n\tat com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:30)\n\tat com.linecorp.linesdk.internal.nwclient.core.ChannelServiceHttpClient.post(ChannelServiceHttpClient.java:91)\n\tat com.linecorp.linesdk.internal.nwclient.LineAuthenticationApiClient.getOneTimeIdAndPassword(LineAuthenticationApiClient.java:92)\n\tat com.linecorp.linesdk.auth.internal.LineAuthenticationController$RequestTokenRequestTask.doInBackground(LineAuthenticationController.java:117)\n\tat com.linecorp.linesdk.auth.internal.LineAuthenticationController$RequestTokenRequestTask.doInBackground(LineAuthenticationController.java:110)\n\tat android.os.AsyncTask$3.call(AsyncTask.java:394)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n\tat java.lang.Thread.run(Thread.java:920)\nCaused by: java.security.cert.CertificateException: Chain validation failed\n\tat com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:719)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:549)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:570)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:615)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:505)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:425)\n\tat com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:353)\n\tat android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)\n\tat android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:90)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$2.checkServerTrusted(ConscryptEngineSocket.java:163)\n\tat com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:255)\n\tat com.android.org.conscrypt.ConscryptEngine.verifyCertificateChain(ConscryptEngine.java:1638)\n\tat com.android.org.conscrypt.NativeCrypto.ENGINE_SSL_read_direct(Native Method)\n\tat com.android.org.conscrypt.NativeSsl.readDirectByteBuffer(NativeSsl.java:569)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextDataDirect(ConscryptEngine.java:1095)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1079)\n\t... 29 more\nCaused by: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date\n\tat sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:222)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)\n\tat java.security.cert.CertPathValidator.validate(CertPathValidator.java:301)\n\tat com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:715)\n\t... 44 more\nCaused by: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date\n\tat sun.security.provider.certpath.OCSPResponse.verify(OCSPResponse.java:619)\n\tat sun.security.provider.certpath.RevocationChecker.checkOCSP(RevocationChecker.java:709)\n\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:363)\n\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:337)\n\tat sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)\n\t... 49 more\n\tSuppressed: java.security.cert.CertPathValidatorException: Could not determine revocation status\n\t\tat sun.security.provider.certpath.RevocationChecker.buildToNewKey(RevocationChecker.java:1092)\n\t\tat sun.security.provider.certpath.RevocationChecker.verifyWithSeparateSigningKey(RevocationChecker.java:910)\n\t\tat sun.security.provider.certpath.RevocationChecker.checkCRLs(RevocationChecker.java:577)\n\t\tat sun.security.provider.certpath.RevocationChecker.checkCRLs(RevocationChecker.java:465)\n\t\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:394)\n\t\t... 51 more\n'}}" }
could you help me. i need to use this plugin for my company project
I'm trying to use your plugins inside my quasar project + cordova. I've initialize the channel_id on mounted() as follow `mounted() { document.addEventListener('deviceready', onDeviceReady, false)
},`
then i have method liek the following
onLineLogin() { lineLogin.login( function(result) { console.log(result) // {userID:12345, displayName:'user name', pictureURL:'thumbnail url'} }, function(error) { console.log(error) }, ) },
when i run it on emulator. try to initiate the onLineLogin method, i got the following error
{ "code": -2, "sdkErrorCode": "NETWORK_ERROR", "description": "LineLoginResult{responseCode=NETWORK_ERROR, nonce='null', lineProfile=null, lineIdToken=null, friendshipStatusChanged=null, lineCredential=null, errorData=LineApiError{httpResponseCode=-1, message='javax.net.ssl.SSLHandshakeException: Chain validation failed\n\tat com.android.org.conscrypt.SSLUtils.toSSLHandshakeException(SSLUtils.java:363)\n\tat com.android.org.conscrypt.ConscryptEngine.convertException(ConscryptEngine.java:1134)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1089)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:876)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:747)\n\tat com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:712)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:858)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.access$100(ConscryptEngineSocket.java:731)\n\tat com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:241)\n\tat com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:220)\n\tat com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:196)\n\tat com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:153)\n\tat com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116)\n\tat com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186)\n\tat com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128)\n\tat com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)\n\tat com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289)\n\tat com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232)\n\tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465)\n\tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)\n\tat com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:90)\n\tat com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:30)\n\tat com.linecorp.linesdk.internal.nwclient.core.ChannelServiceHttpClient.post(ChannelServiceHttpClient.java:91)\n\tat com.linecorp.linesdk.internal.nwclient.LineAuthenticationApiClient.getOneTimeIdAndPassword(LineAuthenticationApiClient.java:92)\n\tat com.linecorp.linesdk.auth.internal.LineAuthenticationController$RequestTokenRequestTask.doInBackground(LineAuthenticationController.java:117)\n\tat com.linecorp.linesdk.auth.internal.LineAuthenticationController$RequestTokenRequestTask.doInBackground(LineAuthenticationController.java:110)\n\tat android.os.AsyncTask$3.call(AsyncTask.java:394)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n\tat java.lang.Thread.run(Thread.java:920)\nCaused by: java.security.cert.CertificateException: Chain validation failed\n\tat com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:719)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:549)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:570)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:615)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:505)\n\tat com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:425)\n\tat com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:353)\n\tat android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)\n\tat android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:90)\n\tat com.android.org.conscrypt.ConscryptEngineSocket$2.checkServerTrusted(ConscryptEngineSocket.java:163)\n\tat com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:255)\n\tat com.android.org.conscrypt.ConscryptEngine.verifyCertificateChain(ConscryptEngine.java:1638)\n\tat com.android.org.conscrypt.NativeCrypto.ENGINE_SSL_read_direct(Native Method)\n\tat com.android.org.conscrypt.NativeSsl.readDirectByteBuffer(NativeSsl.java:569)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextDataDirect(ConscryptEngine.java:1095)\n\tat com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1079)\n\t... 29 more\nCaused by: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date\n\tat sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:222)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)\n\tat sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)\n\tat java.security.cert.CertPathValidator.validate(CertPathValidator.java:301)\n\tat com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:715)\n\t... 44 more\nCaused by: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date\n\tat sun.security.provider.certpath.OCSPResponse.verify(OCSPResponse.java:619)\n\tat sun.security.provider.certpath.RevocationChecker.checkOCSP(RevocationChecker.java:709)\n\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:363)\n\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:337)\n\tat sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)\n\t... 49 more\n\tSuppressed: java.security.cert.CertPathValidatorException: Could not determine revocation status\n\t\tat sun.security.provider.certpath.RevocationChecker.buildToNewKey(RevocationChecker.java:1092)\n\t\tat sun.security.provider.certpath.RevocationChecker.verifyWithSeparateSigningKey(RevocationChecker.java:910)\n\t\tat sun.security.provider.certpath.RevocationChecker.checkCRLs(RevocationChecker.java:577)\n\t\tat sun.security.provider.certpath.RevocationChecker.checkCRLs(RevocationChecker.java:465)\n\t\tat sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:394)\n\t\t... 51 more\n'}}" }
could you help me. i need to use this plugin for my company project