Closed jmartins-sh closed 2 months ago
Thanks for taking the time to raise this issue. While we investigate, could you please provide answers to the following questions:
Hello, I have the same problem, it seems new as I wasn't experiencing it day ago. After user authenticates successfully and DataStore sync starts I'm getting unauthorized error mentioned in issue. Here are logs (example for one model):
ConnectionProviderError.unauthorized
[IncomingAsyncSubscriptionEventToAnyModelMapper] Received completion: failure(DataStoreError: Subscription item event failed with error: Unauthorized
Caused by:
APIError: Subscription item event failed with error: Unauthorized
Caused by:
unauthorized)
[IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
[AWSInitialSyncOrchestrator] Beginning initial sync
[InitialSyncOperation] Beginning sync for AcceptedNewsletterDb
[tcp] tcp_input [C43.1.1:2] flags=[R.] seq=2283493766, ack=3714832984, win=1468 state=ESTABLISHED rcv_nxt=2283493766, snd_una=3714832984
[RemoteSyncEngine] One or more errors occurred syncing models. See below for detailed error description.
DataStoreError: An error occurred syncing AcceptedNewsletterDb
Caused by:
DataStoreError: The HTTP response status code is [401].
Recovery suggestion: The metadata associated with the response is contained in the HTTPURLResponse.
For more information on HTTP status codes, take a look at
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Thanks for taking the time to raise this issue. While we investigate, could you please provide answers to the following questions:
- Can you confirm if recordOwner is populated corectly when creating or updating records?
- Can you share the code for fetching the user data?
Hey @NikaHsn, thanks for the reply, sure here it is:
The field recordOwner is populated correctly, as the image below shows (right now I am using the same value as userId):
The code responsable for the fetch:
I've noticed that the flutter side can't fetch the data, but if I use the aws console on AppSync service, I can run queries using the cognito pool with the user and only his data are shown, so It is working on the backend, the problem seems to be on flutter side.
Screenshot from AppSync service in AWS Console, using the graphql api with cognit pool authentication:
Let me know if you need anything else @NikaHsn!
I appreciate your help. :)
thanks @joaoantoniomartinsfilho. could you please provide the following additional information:
@szymondobrzanski I recommend initiating a new issue and completing the issue template.
Hey @NikaHsn, how's it going?
The additional information as request:
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Building with Flutter multidex support enabled.
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
D/FlutterGeolocator( 5456): Attaching Geolocator to activity
D/FlutterGeolocator( 5456): Creating service.
D/FlutterGeolocator( 5456): Binding to location service.
D/FlutterGeolocator( 5456): Geolocator foreground service connected
D/FlutterGeolocator( 5456): Initializing Geolocator services
D/FlutterGeolocator( 5456): Flutter engine connected. Connected engine count 1
Connecting to VM Service at ws://127.0.0.1:40301/pJoBkejJQME=/ws
W/amplify:aws-datastore( 5456): The doSyncRetry configuration will be deprecated in a future version. Please discontinue use of this API.
W/amplify:aws-datastore( 5456): Disabling sync retries will be deprecated in a future version.
I/amplify:flutter:datastore( 5456): Added Auth plugin
I/amplify:flutter:datastore( 5456): Added API plugin
D/CompatibilityChangeReporter( 5456): Compat change id reported: 247079863; UID 10191; state: DISABLED
I/amplify:aws-datastore( 5456): DataStore plugin initialized.
I/amplify:flutter:datastore( 5456): Unhandled DataStoreHubEvent: SUCCEEDED
I/amplify:flutter:datastore( 5456): com.amplifyframework.core.category.CategoryInitializationResult@ca650ad
I/flutter ( 5456): 2024-04-22 15:19:26.290937 - App - INFO: Application started
D/EGL_emulation( 5456): app_time_stats: avg=31.81ms min=8.55ms max=388.63ms count=43
D/ProfileInstaller( 5456): Installing profile for joao.awsome.awsome
I/ImeTracker( 5456): joao.awsome.awsome:dda94465: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT
D/InputMethodManager( 5456): showSoftInput() view=io.flutter.embedding.android.FlutterView{418dabf VFE...... .F....ID 0,0-720,1280 #2 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/EGL_emulation( 5456): app_time_stats: avg=3545.80ms min=157.87ms max=6933.74ms count=2
I/AssistStructure( 5456): Flattened final assist data: 408 bytes, containing 1 windows, 3 views
D/EGL_emulation( 5456): app_time_stats: avg=258.40ms min=1.11ms max=5004.39ms count=22
D/InsetsController( 5456): show(ime(), fromIme=true)
I/flutter ( 5456): 2024-04-22 15:19:34.654038 - App - INFO: Application started
I/flutter ( 5456): 2024-04-22 15:19:34.759904 - App - INFO: Application started
I/flutter ( 5456): 2024-04-22 15:19:34.793186 - App - INFO: Application started
I/flutter ( 5456): 2024-04-22 15:19:34.828107 - App - INFO: Application started
I/flutter ( 5456): 2024-04-22 15:19:34.865681 - App - INFO: Application started
I/ImeTracker( 5456): joao.awsome.awsome:dda94465: onShown
I/flutter ( 5456): 2024-04-22 15:19:34.909034 - App - INFO: Application started
W/FrameTracker( 5456): Missed SF frame:UNKNOWN: 80, 20500, 0, CUJ=J
I don't have an iOS to validate, so I am facing the issue only on Android.
When I use the Amplify.Datastore.query() the query also returns an empty record to me, and It seems to be the same error message.
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Building with Flutter multidex support enabled.
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
D/FlutterGeolocator( 6185): Attaching Geolocator to activity
D/FlutterGeolocator( 6185): Creating service.
D/FlutterGeolocator( 6185): Binding to location service.
D/FlutterGeolocator( 6185): Geolocator foreground service connected
D/FlutterGeolocator( 6185): Initializing Geolocator services
D/FlutterGeolocator( 6185): Flutter engine connected. Connected engine count 1
Connecting to VM Service at ws://127.0.0.1:33181/CLtfPghLQmI=/ws
W/amplify:aws-datastore( 6185): The doSyncRetry configuration will be deprecated in a future version. Please discontinue use of this API.
W/amplify:aws-datastore( 6185): Disabling sync retries will be deprecated in a future version.
I/amplify:flutter:datastore( 6185): Added Auth plugin
I/amplify:flutter:datastore( 6185): Added API plugin
D/CompatibilityChangeReporter( 6185): Compat change id reported: 247079863; UID 10191; state: DISABLED
I/amplify:flutter:datastore( 6185): Unhandled DataStoreHubEvent: SUCCEEDED
I/amplify:flutter:datastore( 6185): com.amplifyframework.core.category.CategoryInitializationResult@71cacd7
I/amplify:aws-datastore( 6185): DataStore plugin initialized.
I/flutter ( 6185): 2024-04-22 16:01:11.258522 - App - INFO: Application started
D/EGL_emulation( 6185): app_time_stats: avg=22.67ms min=2.36ms max=202.42ms count=42
D/ProfileInstaller( 6185): Installing profile for joao.awesome.awesome
I/ImeTracker( 6185): joao.awesome.awesome:ca404fc5: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT
D/InputMethodManager( 6185): showSoftInput() view=io.flutter.embedding.android.FlutterView{9283019 VFE...... .F....ID 0,0-720,1280 #2 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
I/AssistStructure( 6185): Flattened final assist data: 408 bytes, containing 1 windows, 3 views
D/EGL_emulation( 6185): app_time_stats: avg=12466.50ms min=34.38ms max=24898.62ms count=2
D/EGL_emulation( 6185): app_time_stats: avg=847.67ms min=1.25ms max=22861.85ms count=28
D/EGL_emulation( 6185): app_time_stats: avg=241.26ms min=18.17ms max=1106.84ms count=5
D/InsetsController( 6185): show(ime(), fromIme=true)
D/EGL_emulation( 6185): app_time_stats: avg=1333.62ms min=1333.62ms max=1333.62ms count=1
I/flutter ( 6185): 2024-04-22 16:01:38.146742 - App - INFO: Application started
I/flutter ( 6185): 2024-04-22 16:01:38.293971 - App - INFO: Application started
I/flutter ( 6185): 2024-04-22 16:01:38.345817 - App - INFO: Application started
I/ImeTracker( 6185): joao.awesome.awesome:ca404fc5: onShown
I/flutter ( 6185): 2024-04-22 16:01:38.413519 - App - INFO: Application started
I/flutter ( 6185): 2024-04-22 16:01:38.460247 - App - INFO: Application started
W/FrameTracker( 6185): Missed SF frame:UNKNOWN: 80, 60321, 0, CUJ=J
Code used to query:
Using the Amplify.Datastore.save, It saves the data on phone storage but the logs are showing the same errors, so It is saved but not synced.
by the way, I am using observeQuery because of #2904.
please, let me know if you need anything else, I hope that we can solve this :)
Hi @joaoantoniomartinsfilho, thank you for providing these details. We will take a look at it when we get the chance and get back to you with any updates. Thanks.
Hi @jmartins-sh I'm sorry for the delayed response this fell off of our radar. Please let us know if you are still experiencing this issue so we can continue investigating it for you!
Hey @tyllark, how's it going? I just checked the behavior and it seems the issue is resolved! Thanks for the help!
Description
Hi! I'm developing an app where users should only access their own data. I implemented the
@auth
notation in my GraphQL schema based on the documentation. However, I'm encountering an unauthorized error in my Flutter app.Here's a breakdown of the issue:
Oh, on flutter side I've configured Datastore's Plugins to use MultiAuth (screenshot below)
I appreciate any help! :)
Here is the cli-inputs.json, might be useful.
Logs
I/amplify:aws-datastore( 5758): DataStore plugin initialized. I/amplify:aws-datastore( 5758): Orchestrator transitioning from STOPPED to SYNC_VIA_API I/amplify:aws-datastore( 5758): Starting to observe local storage changes. D/EGL_emulation( 5758): app_time_stats: avg=7.95ms min=1.27ms max=60.63ms count=56 I/amplify:aws-datastore( 5758): Now observing local storage. Local changes will be enqueued to mutation outbox. I/amplify:aws-datastore( 5758): Setting currentState to LOCAL_ONLY I/amplify:aws-datastore( 5758): Setting currentState to SYNC_VIA_API I/amplify:aws-datastore( 5758): Orchestrator lock released. I/amplify:aws-datastore( 5758): Starting API synchronization mode. I/amplify:flutter:datastore( 5758): Established a new stream form flutter com.amplifyframework.datastore.storage.sqlite.SQLiteStorageAdapter$$ExternalSyntheticLambda13@a4376ad I/amplify:aws-datastore( 5758): Starting processing subscription events. I/amplify:aws-datastore( 5758): Orchestrator lock acquired. I/amplify:aws-datastore( 5758): DataStore plugin initialized. I/amplify:aws-datastore( 5758): Orchestrator lock released. I/ker.awsome-project( 5758): Background concurrent copying GC freed 77415(3716KB) AllocSpace objects, 6(312KB) LOS objects, 49% free, 7230KB/14MB, paused 194us,43us total 155.783ms D/TrafficStats( 5758): tagSocket(137) with statsTag=0xffffffff, statsUid=-1 D/EGL_emulation( 5758): app_time_stats: avg=6.25ms min=1.83ms max=34.03ms count=54 /ker.awsome-project( 5758): Long monitor contention with owner pool-7-thread-3 (6037) at void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action)(SubscriptionEndpoint.java:207) waiters=3 in void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action) for 2.108s W/amplify:aws-datastore( 5758): Unauthorized failure:ON_DELETE User W/ker.awsome-project( 5758): Long monitor contention with owner pool-7-thread-3 (6037) at void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action)(SubscriptionEndpoint.java:207) waiters=4 in void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action) for 2.321s /amplify:aws-datastore( 5758): Unauthorized failure:ON_UPDATE User W/ker.awsome-project( 5758): Long monitor contention with owner pool-7-thread-3 (6037) at void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action)(SubscriptionEndpoint.java:207) waiters=6 in void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action) for 2.697s W/amplify:aws-datastore( 5758): Unauthorized failure:ON_CREATE User D/EGL_emulation( 5758): app_time_stats: avg=6.07ms min=2.30ms max=22.02ms count=53 W/ker.awsome-project( 5758): Long monitor contention with owner pool-7-thread-3 (6037) at void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action)(SubscriptionEndpoint.java:207) waiters=7 in void com.amplifyframework.api.aws.SubscriptionEndpoint.requestSubscription(com.amplifyframework.api.graphql.GraphQLRequest, com.amplifyframework.api.aws.AuthorizationType, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Consumer, com.amplifyframework.core.Action) for 2.938s I/amplify:aws-datastore( 5758): Started subscription processor for models: [User] of types [ON_CREATE, ON_UPDATE, ON_DELETE]. D/TrafficStats( 5758): tagSocket(149) with statsTag=0xffffffff, statsUid=-1 D/EGL_emulation( 5758): app_time_stats: avg=3.87ms min=1.31ms max=22.84ms count=57 D/CompatibilityChangeReporter( 5758): Compat change id reported: 263076149; UID 10191; state: DISABLED I/amplify:aws-datastore( 5758): Successfully sync'd down model state from cloud. W/amplify:aws-datastore( 5758): Initial cloud sync failed for User. W/amplify:aws-datastore( 5758): IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.} W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor.lambda$syncPage$16(SyncProcessor.java:325) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor$$ExternalSyntheticLambda19.accept(Unknown Source:4) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.appsync.AppSyncClient$$ExternalSyntheticLambda1.accept(Unknown Source:4) W/amplify:aws-datastore( 5758): at com.amplifyframework.api.aws.MultiAuthAppSyncGraphQLOperation$OkHttpCallback.onResponse(MultiAuthAppSyncGraphQLOperation.java:183) W/amplify:aws-datastore( 5758): at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:539) W/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) W/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) W/amplify:aws-datastore( 5758): at java.lang.Thread.run(Thread.java:1012) E/amplify:flutter:datastore( 5758): DataStoreException{message=Initial cloud sync failed for User., cause=IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.}, recoverySuggestion=Check your internet connection.} E/amplify:aws-datastore( 5758): Failure encountered while attempting to start API sync. E/amplify:aws-datastore( 5758): DataStoreException{message=Initial sync during DataStore initialization failed., cause=java.lang.RuntimeException: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.}, recoverySuggestion=There is a possibility that there is a bug if this error persists. Please take a look at E/amplify:aws-datastore( 5758): https://github.com/aws-amplify/amplify-android/issues to see if there are any existing issues that E/amplify:aws-datastore( 5758): match your scenario, and file an issue with the details of the bug if there isn't.} E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator.lambda$startApiSync$4$com-amplifyframework-datastore-syncengine-Orchestrator(Orchestrator.java:362) E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator$$ExternalSyntheticLambda8.subscribe(Unknown Source:2) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletableCreate.subscribeActual(CompletableCreate.java:40) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(Scheduler.java:614) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:65) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:56) E/amplify:aws-datastore( 5758): at java.util.concurrent.FutureTask.run(FutureTask.java:264) E/amplify:aws-datastore( 5758): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307) E/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) E/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) E/amplify:aws-datastore( 5758): at java.lang.Thread.run(Thread.java:1012) E/amplify:aws-datastore( 5758): Caused by: java.lang.RuntimeException: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.} E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:94) E/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.blockingAwait(Completable.java:1461) E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator.lambda$startApiSync$4$com-amplifyframework-datastore-syncengine-Orchestrator(Orchestrator.java:358) E/amplify:aws-datastore( 5758): ... 18 more E/amplify:aws-datastore( 5758): Caused by: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.} E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor.lambda$syncPage$16(SyncProcessor.java:325) E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor$$ExternalSyntheticLambda19.accept(Unknown Source:4) E/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.appsync.AppSyncClient$$ExternalSyntheticLambda1.accept(Unknown Source:4) E/amplify:aws-datastore( 5758): at com.amplifyframework.api.aws.MultiAuthAppSyncGraphQLOperation$OkHttpCallback.onResponse(MultiAuthAppSyncGraphQLOperation.java:183) E/amplify:aws-datastore( 5758): at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:539) E/amplify:aws-datastore( 5758): ... 3 more W/amplify:aws-datastore( 5758): API sync failed - transitioning to LOCAL_ONLY. W/amplify:aws-datastore( 5758): DataStoreException{message=Initial sync during DataStore initialization failed., cause=java.lang.RuntimeException: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.}, recoverySuggestion=There is a possibility that there is a bug if this error persists. Please take a look at W/amplify:aws-datastore( 5758): https://github.com/aws-amplify/amplify-android/issues to see if there are any existing issues that W/amplify:aws-datastore( 5758): match your scenario, and file an issue with the details of the bug if there isn't.} W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator.lambda$startApiSync$4$com-amplifyframework-datastore-syncengine-Orchestrator(Orchestrator.java:362) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator$$ExternalSyntheticLambda8.subscribe(Unknown Source:2) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletableCreate.subscribeActual(CompletableCreate.java:40) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletablePeek.subscribeActual(CompletablePeek.java:51) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.subscribe(Completable.java:2850) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(Scheduler.java:614) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:65) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:56) W/amplify:aws-datastore( 5758): at java.util.concurrent.FutureTask.run(FutureTask.java:264) W/amplify:aws-datastore( 5758): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307) W/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) W/amplify:aws-datastore( 5758): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) W/amplify:aws-datastore( 5758): at java.lang.Thread.run(Thread.java:1012) W/amplify:aws-datastore( 5758): Caused by: java.lang.RuntimeException: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.} W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:94) W/amplify:aws-datastore( 5758): at io.reactivex.rxjava3.core.Completable.blockingAwait(Completable.java:1461) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.Orchestrator.lambda$startApiSync$4$com-amplifyframework-datastore-syncengine-Orchestrator(Orchestrator.java:358) W/amplify:aws-datastore( 5758): ... 18 more W/amplify:aws-datastore( 5758): Caused by: IrRecoverableException{message=Empty response from AppSync., cause=null, recoverySuggestion=Report to AWS team.} W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor.lambda$syncPage$16(SyncProcessor.java:325) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.syncengine.SyncProcessor$$ExternalSyntheticLambda19.accept(Unknown Source:4) W/amplify:aws-datastore( 5758): at com.amplifyframework.datastore.appsync.AppSyncClient$$ExternalSyntheticLambda1.accept(Unknown Source:4) W/amplify:aws-datastore( 5758): at com.amplifyframework.api.aws.MultiAuthAppSyncGraphQLOperation$OkHttpCallback.onResponse(MultiAuthAppSyncGraphQLOperation.java:183) W/amplify:aws-datastore( 5758): at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:539) W/amplify:aws-datastore( 5758): ... 3 more I/amplify:aws-datastore( 5758): Orchestrator transitioning from SYNC_VIA_API to LOCAL_ONLY I/amplify:aws-datastore( 5758): Stopping subscription processor. I/amplify:aws-datastore( 5758): Stopped subscription processor. I/amplify:aws-datastore( 5758): Setting currentState to LOCAL_ONLY D/EGL_emulation( 5758): app_time_stats: avg=5.97ms min=1.33ms max=22.17ms count=53 W/ker.awsome-project( 5758): Long monitor contention with owner pool-7-thread-6 (6038) at void com.amplifyframework.api.aws.SubscriptionEndpoint.releaseSubscription(java.lang.String)(SubscriptionEndpoint.java:315) waiters=1 in void com.amplifyframework.api.aws.SubscriptionEndpoint.releaseSubscription(java.lang.String) for 408ms
Categories
Steps to Reproduce
.
Screenshots
Platforms
Flutter Version
3.19.5
Amplify Flutter Version
1.7.0
Deployment Method
Amplify CLI
Schema