Fix registration server error not displaying issue #2215

Closed
tae wants to merge 5 commits from gitlab-mr-iid-948 into develop
Member

closes #660

closes #660
Member

See my comment: #2187

The server returns the error in a different format than other errors, the server should fix this. I don't want code to handle every single small variation of a simple error in the frontend

See my comment: https://git.pleroma.social/pleroma/pleroma-fe/pulls/2187#note_37511 The server returns the error in a different format than other errors, the server should fix this. I don't want code to handle every single small variation of a simple error in the frontend
Author
Member

The registration api returns errors in the same format { error: "string" } now.

error: "{"ap_id":["has already been taken"]}",
error: "{"captcha":["Invalid CAPTCHA"]}"

The server returns the error in a different format than other errors, the server should fix this.

Did you mean that the registration errors are in a different format than errors of the other api endpoints?

The registration api returns errors in the same format `{ error: "string" }` now. `error: "{"ap_id":["has already been taken"]}"`, `error: "{"captcha":["Invalid CAPTCHA"]}"` > The server returns the error in a different format than other errors, the server should fix this. Did you mean that the registration errors are in a different format than errors of the other api endpoints?
Member

Yes, we need to adjust BE to use a plain language description of the error instead of a JSON object.

Yes, we need to adjust BE to use a plain language description of the error instead of a JSON object.
Author
Member

shall I close this? @shpuld @kaniini

shall I close this? @shpuld @kaniini
Member

Closing for now, feel free to reopen if needed.

Closing for now, feel free to reopen if needed.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe!2215
No description provided.