Datastore error handler has unparsable error message #4869
Labels
datastore
Issues related to the DataStore Category
feature-request
A request for a new feature or an enhancement to an existing API or category.
Description
While testing my Flutter app on the iOS simulator, I came across an issue. It occurred during the execution of
Datastore.save
, where the mutation failed due to a client error. Below is the Datastore initialization function. In this function,errorHandler
is expected to return a message that can be parsed to obtain the error message.Below is the message I am getting inside errorHandler
As I deep drive into the
amplify_datastore
iOS SDK, I noticed that thecreateSerializedError
function below sends an error description, which complicates the process of parsing the error.Error passed to flutter apps should be in either a map or a json, so that flutter client can parse the error.
Categories
Steps to Reproduce
Screenshots
No response
Platforms
Flutter Version
3.19.0
Amplify Flutter Version
1.7.0
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: