Page MenuHomePhabricator

Unable to login with provided credentials
Open, NormalPublic

Description

Create an exception that is thrown by the various 'connect' methods when invalid credentials are given.

The JSON for such an event looks like:

{
  "non_field_errors": [
    "Unable to log in with provided credentials."
  ]
}

Event Timeline

CLOVIS triaged this task as Normal priority.Sep 20 2018, 3:36 PM
CLOVIS created this task.
CLOVIS moved this task from Pending / Unconfirmed to API on the LibWF-java board.

Uff. No-one wants to parse a string JSON, how about an error code?

It would be better to check for the http sttlatus code, instead of trying to parse the json.

CLOVIS added a comment.Feb 5 2019, 5:55 PM

It would be better to check for the http sttlatus code, instead of trying to parse the json.

Is there a special error code for that case though? If we only look at the error code, we may confuse this with some other error (I don't know, something like "incorrect email" or similar)