Skip to content

DataStore query fail on iOS #422

@hyobbb

Description

@hyobbb

Describe the bug
Query failed: DataStoreException(message: The operation couldn’t be completed. (SQLite.Result error 0.), recoverySuggestion: The operation couldn’t be completed. (SQLite.Result error 0.), underlyingException: The operation couldn’t be completed. (SQLite.Result error 0.))

query relational model causes error (query comments by postId for example)
on Android it doesn't throw error.

Also, HotRestart on iOS crash app because of AmplifyAlreadyConfiguredException although it should be caught by try&catch.

[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: AmplifyException(message: An unknown exception has happened.           Please take a look at 
        https://github.com/aws-amplify/amplify-flutter/issues to see if there are any existing issues that 
        match your scenario, and file an issue with the details of the bug if there isn't.
  , recoverySuggestion: We currently don't have a recovery suggestion for this exception., underlyingException: PlatformException(AmplifyAlreadyConfigured, Translating platform exception failed. Please take a look at https://github.com/aws-amplify/amplify-flutter/issues to see if there are any existing issues that match your scenario, and file an issue with the details of the bug if there isn't., {recoverySuggestion: Remove the duplicate call to `Amplify.configure()`, underlyingException: nil, message: Amplify has already been configured.}, null))
#0      AmplifyClass.configure (package:amplify_flutter/amplify.dart:187:9)
<asynchronous suspension>
#1      M<…>

Metadata

Metadata

Assignees

Labels

datastoreIssues related to the DataStore CategoryiOSIssues specific to the iOS Platformrequires-ios-fixThis issue is the result of an underlying Amplify iOS issue that needs to be fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions