More granular query access in Auth rule leads to "invalid string supplied: LIST" #3434
Open
2 of 14 tasks
Labels
datastore
Issues related to the DataStore Category
feature-parity
A request for a feature that is fully or partially available on another platform (JS, iOS, Android)
feature-request
A request for a new feature or an enhancement to an existing API or category.
requires-ios-fix
This issue is the result of an underlying Amplify iOS issue that needs to be fixed.
Description
If we add an read auth rule operation (listen, list, ...) instead of general "read" we get an
"java.lang.Exception: stringToModelOperation - invalid string supplied: LIST" Exception while adding the Datastore Plugin.
If we replace it with "read" we can add the Datastore plugin.
The complete error in the Terminal:
E/DartMessenger(30599): Uncaught exception in binary message listener
E/DartMessenger(30599): java.lang.Exception: stringToModelOperation - invalid string supplied: LIST
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.types.model.FlutterAuthRule.stringToModelOperation(FlutterAuthRule.kt:40)
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.types.model.FlutterAuthRule.(FlutterAuthRule.kt:20)
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.types.model.FlutterModelSchema.(FlutterModelSchema.kt:16)
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.AmplifyDataStorePlugin.registerSchemas(AmplifyDataStorePlugin.kt:728)
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.AmplifyDataStorePlugin.onConfigureDataStore(AmplifyDataStorePlugin.kt:222)
E/DartMessenger(30599): at com.amazonaws.amplify.amplify_datastore.AmplifyDataStorePlugin.onMethodCall(AmplifyDataStorePlugin.kt:194)
E/DartMessenger(30599): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger(30599): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger(30599): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger(30599): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger(30599): at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger(30599): at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger(30599): at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger(30599): at android.os.Looper.loop(Looper.java:288)
E/DartMessenger(30599): at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger(30599): at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(30599): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger(30599): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/flutter (30599): Amplify plugin was not added
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Flutter Version
3.10.5
Amplify Flutter Version
1.2.0-supports-only-mobile+1
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: