# Errore: il nome utente esiste già

**URL:** https://meta.discourse.org/t/username-already-exist-error/134356
**Category:** Self-hosting
**Created:** [25 Novembre 2019, 10:07am UTC](https://meta.discourse.org/t/username-already-exist-error/134356 "2019-11-25T10:07:23Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [11 Dicembre 2019, 8:40pm UTC](https://meta.discourse.org/t/username-already-exist-error/134356/4 "2019-12-11T20:40:55Z")

</div>

Non so se sia correlato o meno. Iscrivo gli utenti tramite API. Ottengo il nome utente dall’utente e verifico se esiste tramite API; se esiste, scelgo ciò che Discourse suggerisce. Tuttavia, molte volte il suggerimento è in realtà un nome utente reale di un utente che in qualche modo è rotto. Cioè, quando provo a visualizzare il loro profilo, ricevo una pagina di errore “non trovato”.

Comunque, ho segnalato questi utenti rotti qui:

> [@Critical Error: changed username, user got broken](https://meta.discourse.org/t/critical-error-changed-username-user-got-broken/132659):
>
> I just changed the username of a person xxx on their demand. they wanted to take an inactive username yyy. so first I changed the inactive username yyy to somthing else like yyy1 and then changed that person username from xxx to yyy. at this point, first, the user couldnt post anything and I saw the following error in the logs: Job exception: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index\_users\_on\_username\_lower" DETAIL: Key (username\_lower)=(mina) already ex…

---

_[View the full topic](https://meta.discourse.org/t/username-already-exist-error/134356)._
