Skip to content

Investigate proper parsing of API errors on webapp side #337

Open

Description

@mickmister

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)

Activity

  1. added
    Good First Issue
    Help Wanted
    Type/Task
    Up For Grabs
    on Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty/1:EasyGood First IssueHacktoberfestHelp WantedTech/GoTech/ReactJSType/TaskUp For Grabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions