# 错误：重复键值违反了唯一约束“index\_users\_on\_username”

**URL:** <https://meta.discourse.org/t/error-duplicate-key-value-violates-unique-constraint-index-users-on-username/165601>\
**Category:** Support\
**Created:** [2020年九月28日 10:56 UTC](https://meta.discourse.org/t/error-duplicate-key-value-violates-unique-constraint-index-users-on-username/165601 "2020-09-28T10:56:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terrapop](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Post date:** [2020年九月28日 10:56 UTC](https://meta.discourse.org/t/error-duplicate-key-value-violates-unique-constraint-index-users-on-username/165601/1 "2020-09-28T10:56:59Z")

</div>

我们的日志中出现了大量此类错误：

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/d/0/d0ab8932f54ec03af0424393c69f6ad4f8421b3c_2_690x43.png)

我们通过批量邮件邀请发送了约 40,000 封邀请。

这是什么问题？
