[GH-ISSUE #4912] [BUG]: Clean Username Already Exists Error #3090

Closed
opened 2026-02-22 18:32:34 -05:00 by yindo · 0 comments
Owner

Originally created by @angelplusultra on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4912

Originally assigned to: @angelplusultra on GitHub.

How are you running AnythingLLM?

All versions

What happened?

In multi-user mode as an admin:
If i try to create a user with the same name as another user I get a nasty prisma error message
If i try to update an existing user to a username that is taken i get a nasty prisma error.

This should instead return a clear error message like "username is taken".

This error likely also occurs on
Invitation acceptance
Any other places users can put in their own username (like account modal in top right of UI)

When possible, we should show a neat error message instead of this overly verbose error message, which can instead of backend logged.

Are there known steps to reproduce?

No response

Originally created by @angelplusultra on GitHub (Jan 27, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4912 Originally assigned to: @angelplusultra on GitHub. ### How are you running AnythingLLM? All versions ### What happened? In multi-user mode as an admin: If i try to create a user with the same name as another user I get a nasty prisma error message If i try to update an existing user to a username that is taken i get a nasty prisma error. This should instead return a clear error message like "username is taken". This error likely also occurs on Invitation acceptance Any other places users can put in their own username (like account modal in top right of UI) When possible, we should show a neat error message instead of this overly verbose error message, which can instead of backend logged. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:32:34 -05:00
yindo closed this issue 2026-02-22 18:32:34 -05:00
yindo changed title from [BUG]: Clean Username Already Exists Error to [GH-ISSUE #4912] [BUG]: Clean Username Already Exists Error 2026-06-05 14:50:14 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3090