Advertisement
athacks

DataStore Exception

Apr 2nd, 2020
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 13.15 KB | None | 0 0
  1. 04-02 17:32:23.615 4471-4506/com.example.app W/amplify:aws-datastore: Error applying mutation to local storage.
  2.     com.amplifyframework.datastore.DataStoreException: Bad subscription data for MyModel: [Validation error of type FieldUndefined: Field 'id' in type 'MyModel' is undefined @ 'onCreateMyModel/id']
  3.         at com.amplifyframework.datastore.network.SubscriptionAdapter.onNext(SubscriptionAdapter.java:52)
  4.         at com.amplifyframework.datastore.network.SubscriptionAdapter.onNext(SubscriptionAdapter.java:34)
  5.         at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.dispatchNextMessage(SubscriptionEndpoint.java:407)
  6.         at com.amplifyframework.api.aws.SubscriptionEndpoint.notifySubscriptionData(SubscriptionEndpoint.java:275)
  7.         at com.amplifyframework.api.aws.SubscriptionEndpoint.processJsonMessage(SubscriptionEndpoint.java:207)
  8.         at com.amplifyframework.api.aws.SubscriptionEndpoint.processMessage(SubscriptionEndpoint.java:172)
  9.         at com.amplifyframework.api.aws.SubscriptionEndpoint.access$100(SubscriptionEndpoint.java:52)
  10.         at com.amplifyframework.api.aws.SubscriptionEndpoint$1.onMessage(SubscriptionEndpoint.java:144)
  11.         at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.kt:290)
  12.         at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.kt:220)
  13.         at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:100)
  14.         at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:247)
  15.         at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:181)
  16.         at okhttp3.RealCall$AsyncCall.run(RealCall.kt:138)
  17.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  18.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  19.         at java.lang.Thread.run(Thread.java:818)
  20. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err: io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | com.amplifyframework.api.ApiException: Subscription not acknowledged.
  21. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
  22. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onError(ObservableCreate.java:73)
  23. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.RemoteModelMutations$Subscription$SubscriptionFunnel.onError(RemoteModelMutations.java:214)
  24. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.SubscriptionAdapter.onError(SubscriptionAdapter.java:67)
  25. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.dispatchError(SubscriptionEndpoint.java:414)
  26. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.awaitSubscriptionReady(SubscriptionEndpoint.java:369)
  27. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(SubscriptionEndpoint.java:121)
  28. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.SubscriptionOperation.start(SubscriptionOperation.java:84)
  29. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:447)
  30. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:394)
  31. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.api.ApiCategory.subscribe(ApiCategory.java:206)
  32. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.AppSyncApi.subscription(AppSyncApi.java:227)
  33. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.AppSyncApi.onCreate(AppSyncApi.java:193)
  34. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.RemoteModelMutations$Subscription$Request.begin(RemoteModelMutations.java:139)
  35. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.RemoteModelMutations.lambda$null$1$RemoteModelMutations(RemoteModelMutations.java:73)
  36. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at com.amplifyframework.datastore.network.-$$Lambda$RemoteModelMutations$Tkw5jUKoQBhIwoANrkV1y8QPp2Y.subscribe(lambda)
  37. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40)
  38. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.Observable.subscribe(Observable.java:12267)
  39. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.operators.observable.ObservableDefer.subscribeActual(ObservableDefer.java:40)
  40. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.Observable.subscribe(Observable.java:12267)
  41. 04-02 17:32:33.283 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
  42. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
  43. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
  44. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
  45. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  46. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
  47. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
  48. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  49. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  50. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:     at java.lang.Thread.run(Thread.java:818)
  51. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err: Caused by: com.amplifyframework.api.ApiException: Subscription not acknowledged.
  52. 04-02 17:32:33.284 4471-4509/com.example.app W/System.err:  ... 25 more
  53. 04-02 17:32:33.284 4471-4509/com.example.app E/AndroidRuntime: FATAL EXCEPTION: RxCachedThreadScheduler-2
  54.     Process: com.example.app, PID: 4471
  55.     io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | com.amplifyframework.api.ApiException: Subscription not acknowledged.
  56.         at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
  57.         at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onError(ObservableCreate.java:73)
  58.         at com.amplifyframework.datastore.network.RemoteModelMutations$Subscription$SubscriptionFunnel.onError(RemoteModelMutations.java:214)
  59.         at com.amplifyframework.datastore.network.SubscriptionAdapter.onError(SubscriptionAdapter.java:67)
  60.         at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.dispatchError(SubscriptionEndpoint.java:414)
  61.         at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.awaitSubscriptionReady(SubscriptionEndpoint.java:369)
  62.         at com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(SubscriptionEndpoint.java:121)
  63.         at com.amplifyframework.api.aws.SubscriptionOperation.start(SubscriptionOperation.java:84)
  64.         at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:447)
  65.         at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:394)
  66.         at com.amplifyframework.api.ApiCategory.subscribe(ApiCategory.java:206)
  67.         at com.amplifyframework.datastore.network.AppSyncApi.subscription(AppSyncApi.java:227)
  68.         at com.amplifyframework.datastore.network.AppSyncApi.onCreate(AppSyncApi.java:193)
  69.         at com.amplifyframework.datastore.network.RemoteModelMutations$Subscription$Request.begin(RemoteModelMutations.java:139)
  70.         at com.amplifyframework.datastore.network.RemoteModelMutations.lambda$null$1$RemoteModelMutations(RemoteModelMutations.java:73)
  71.         at com.amplifyframework.datastore.network.-$$Lambda$RemoteModelMutations$Tkw5jUKoQBhIwoANrkV1y8QPp2Y.subscribe(lambda)
  72.         at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40)
  73.         at io.reactivex.Observable.subscribe(Observable.java:12267)
  74.         at io.reactivex.internal.operators.observable.ObservableDefer.subscribeActual(ObservableDefer.java:40)
  75.         at io.reactivex.Observable.subscribe(Observable.java:12267)
  76.         at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
  77.         at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
  78.         at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
  79.         at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
  80.         at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  81.         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
  82.         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
  83.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  84.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  85.         at java.lang.Thread.run(Thread.java:818)
  86.      Caused by: com.amplifyframework.api.ApiException: Subscription not acknowledged.
  87.         at com.amplifyframework.api.aws.SubscriptionEndpoint$Subscription.awaitSubscriptionReady(SubscriptionEndpoint.java:369) 
  88.         at com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(SubscriptionEndpoint.java:121) 
  89.         at com.amplifyframework.api.aws.SubscriptionOperation.start(SubscriptionOperation.java:84) 
  90.         at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:447) 
  91.         at com.amplifyframework.api.aws.AWSApiPlugin.subscribe(AWSApiPlugin.java:394) 
  92.         at com.amplifyframework.api.ApiCategory.subscribe(ApiCategory.java:206) 
  93.         at com.amplifyframework.datastore.network.AppSyncApi.subscription(AppSyncApi.java:227) 
  94.         at com.amplifyframework.datastore.network.AppSyncApi.onCreate(AppSyncApi.java:193) 
  95.         at com.amplifyframework.datastore.network.RemoteModelMutations$Subscription$Request.begin(RemoteModelMutations.java:139) 
  96.         at com.amplifyframework.datastore.network.RemoteModelMutations.lambda$null$1$RemoteModelMutations(RemoteModelMutations.java:73) 
  97.         at com.amplifyframework.datastore.network.-$$Lambda$RemoteModelMutations$Tkw5jUKoQBhIwoANrkV1y8QPp2Y.subscribe(lambda) 
  98.         at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40) 
  99.         at io.reactivex.Observable.subscribe(Observable.java:12267) 
  100.         at io.reactivex.internal.operators.observable.ObservableDefer.subscribeActual(ObservableDefer.java:40) 
  101.         at io.reactivex.Observable.subscribe(Observable.java:12267) 
  102.         at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) 
  103.         at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578) 
  104.         at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66) 
  105.         at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57) 
  106.         at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
  107.         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) 
  108.         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) 
  109.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
  110.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
  111.         at java.lang.Thread.run(Thread.java:818) 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement