Advertisement
athacks

API Json Exception

Apr 11th, 2020
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.97 KB | None | 0 0
  1. 04-11 15:50:58.539 6579-6608/com.example.myapp E/AndroidRuntime: FATAL EXCEPTION: pool-3-thread-2
  2.     Process: com.example.myapp, PID: 6579
  3.     java.lang.RuntimeException: com.amplifyframework.datastore.DataStoreException: Failure performing sync query to AppSync.
  4.         at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
  5.         at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
  6.         at io.reactivex.Completable.blockingAwait(Completable.java:1227)
  7.         at com.amplifyframework.datastore.syncengine.Orchestrator.lambda$start$0$Orchestrator(Orchestrator.java:3)
  8.         at com.amplifyframework.datastore.syncengine.-$$Lambda$Orchestrator$sXOpGcCGs9ZiNIMKtTT6tZMPTQU.run(lambda)
  9.         at io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual(CompletableFromAction.java:35)
  10.         at io.reactivex.Completable.subscribe(Completable.java:2309)
  11.         at io.reactivex.internal.operators.completable.CompletableAndThenCompletable$SourceObserver.onComplete(CompletableAndThenCompletable.java:67)
  12.         at io.reactivex.internal.operators.completable.CompletableCreate$Emitter.onComplete(CompletableCreate.java:64)
  13.         at com.amplifyframework.datastore.AWSDataStorePlugin.lambda$null$2(AWSDataStorePlugin.java:1)
  14.         at com.amplifyframework.datastore.-$$Lambda$AWSDataStorePlugin$KzWoRbIa5fAf-opMJmvpcYTLpM4.accept(lambda)
  15.         at com.amplifyframework.datastore.storage.sqlite.SQLiteStorageAdapter.lambda$null$0$SQLiteStorageAdapter(SQLiteStorageAdapter.java:3)
  16.         at com.amplifyframework.datastore.storage.sqlite.-$$Lambda$SQLiteStorageAdapter$w4lkRK7kn70UKyGuaWOFqFrETHI.run(lambda)
  17.         at io.reactivex.internal.observers.CallbackCompletableObserver.onComplete(CallbackCompletableObserver.java:53)
  18.         at io.reactivex.internal.operators.completable.CompletableFromSingle$CompletableFromSingleObserver.onSuccess(CompletableFromSingle.java:51)
  19.         at io.reactivex.internal.operators.single.SingleFlatMap$SingleFlatMapCallback$FlatMapSingleObserver.onSuccess(SingleFlatMap.java:111)
  20.         at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess(SingleCreate.java:67)
  21.         at com.amplifyframework.datastore.storage.sqlite.PersistentModelVersion.lambda$null$1(PersistentModelVersion.java:1)
  22.         at com.amplifyframework.datastore.storage.sqlite.-$$Lambda$PersistentModelVersion$3EIFYsUxnq4w1GB5yAimLeipvmc.accept(lambda)
  23.         at com.amplifyframework.datastore.storage.sqlite.SQLiteStorageAdapter.lambda$save$3$SQLiteStorageAdapter(SQLiteStorageAdapter.java:59)
  24.         at com.amplifyframework.datastore.storage.sqlite.-$$Lambda$SQLiteStorageAdapter$JhGtXoPGeJ7lbNvRHxROfLs-WmE.run(lambda)
  25.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
  26.         at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  27.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  28.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  29.         at java.lang.Thread.run(Thread.java:818)
  30.      Caused by: com.amplifyframework.datastore.DataStoreException: Failure performing sync query to AppSync.
  31.         at com.amplifyframework.datastore.appsync.AppSyncClient.lambda$sync$1(AppSyncClient.java:1)
  32.         at com.amplifyframework.datastore.appsync.-$$Lambda$AppSyncClient$suvEma05s-p8v-66iE4cswLKYac.accept(lambda)
  33.         at com.amplifyframework.api.aws.SingleArrayResultOperation$OkHttpCallback.onFailure(SingleArrayResultOperation.java:3)
  34.         at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:510)
  35.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
  36.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
  37.         at java.lang.Thread.run(Thread.java:818) 
  38.      Caused by: com.amplifyframework.api.ApiException: Could not retrieve the response body from the returned JSON
  39.         at com.amplifyframework.api.aws.SingleArrayResultOperation$OkHttpCallback.onFailure(SingleArrayResultOperation.java:3) 
  40.         at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:510) 
  41.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
  42.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
  43.         at java.lang.Thread.run(Thread.java:818) 
  44.      Caused by: javax.net.ssl.SSLHandshakeException: Connection closed by peer
  45.         at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
  46.         at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:318)
  47.         at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:367)
  48.         at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:325)
  49.         at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:197)
  50.         at okhttp3.internal.connection.ExchangeFinder.findCo
  51. 04-11 15:51:28.060 6579-6612/com.example.myapp W/amplify:aws-datastore: Error enqueuing mutation from subscription.
  52.     com.amplifyframework.datastore.DataStoreException: Error during subscription.
  53.         at com.amplifyframework.datastore.appsync.AppSyncClient.lambda$subscription$3(AppSyncClient.java:1)
  54.         at com.amplifyframework.datastore.appsync.-$$Lambda$AppSyncClient$8gXTT9bgLZGP51blif6hkh7EwIc.accept(lambda)
  55.         at com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(SubscriptionEndpoint.java:27)
  56.         at com.amplifyframework.api.aws.SubscriptionOperation.lambda$start$0$SubscriptionOperation(SubscriptionOperation.java:4)
  57.         at com.amplifyframework.api.aws.-$$Lambda$SubscriptionOperation$FXgdmzMG9ubNhC1f2NTwXyG53uo.run(lambda)
  58.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
  59.         at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  60.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  61.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  62.         at java.lang.Thread.run(Thread.java:818)
  63.      Caused by: com.amplifyframework.api.ApiException: Subscription timed out waiting for acknowledgement
  64.         at com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(SubscriptionEndpoint.java:27) 
  65.         at com.amplifyframework.api.aws.SubscriptionOperation.lambda$start$0$SubscriptionOperation(SubscriptionOperation.java:4) 
  66.         at com.amplifyframework.api.aws.-$$Lambda$SubscriptionOperation$FXgdmzMG9ubNhC1f2NTwXyG53uo.run(lambda) 
  67.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) 
  68.         at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
  69.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
  70.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
  71.         at java.lang.Thread.run(Thread.java:818) 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement