Investigate proper parsing of API errors on webapp side #337
Labels
Difficulty/1:Easy
Easy ticket
Good First Issue
Suitable for first-time contributors
Hacktoberfest
Help Wanted
Community help wanted
Tech/Go
Tech/ReactJS
Type/Task
A general task
Up For Grabs
Ready for help from the community. Removed when someone volunteers
The plugin's backend is returning error messages as JSON, making it so the frontend displays the errors as JSON in some cases. These code paths should be reviewed to make sure it is rendered properly when we display the errors in different components.
The frontend should be resilient to the possibility that the error is not structured as JSON as well.
Original comment:
This PR is a quick resolution for this issue, however, I believe that it will still need to be further examined and the changes from stringified error to parseable object error should happen in the function that receives the error, not in the method that renders it. Therefore, I believe that still needs to change for this issue to be complete, either in this PR, or if further consistency between error objects across the webapp and the server need to be examined then possibly in the scope of another issue.
Originally posted by @aidapira in #333 (comment)
The text was updated successfully, but these errors were encountered: