Skip to content

Clean up frontend residue code that shows incorrect error messages #2684

Open
@kjw142857

Description

@kjw142857

Currently, handleResponseError in the RequestsSaga checks if the response is null and if so, shows a message that the user is unable to reach the BE servers. However, the response handled defaults to null as the request handler does not forward non-200 responses, and so this message is always shown regardless of the actual error (e.g. unauthorised access, file not found)
This may cause users to misunderstand what the actual issue is

image
(all errors cause null to be forwarded)

image
(the forwarded null response causes the default incorrect server message to show)

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingimportantFixing this is important, but not mission-critical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions