"User is already in a Clan." despite not being the case #1921

Closed
opened 2025-04-29 10:01:28 -07:00 by Animan8000 · 1 comment
Contributor

Trying to invite this account that isn't in a clan yet, but the game says the player is already in a clan, when it isn't the case. The console also outputs an error.

{7B1CC54C-96D7-4940-AB54-B400FF903FE8}.png {57276A29-EDFA-4C43-9CC1-2321343B138F}.png
2025-04-29T18:58:28:090 [0.1.0] http:   POST /api/guildTech.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI&guildId=680f59916c7554aad67dc22f 200 77.465 ms - 19
2025-04-29T18:58:32:086 [0.1.0] debug:  guild invite failed due to MongoServerError: E11000 duplicate key error collection: openWF.guildmembers index: allianceId_1_guildId_1 dup key: { allianceId: null, guildId: ObjectId('680f59916c7554aad67dc22f') }
2025-04-29T18:58:32:087 [0.1.0] http:   POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 8.978 ms - 30
2025-04-29T18:58:36:411 [0.1.0] http:   POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 1.190 ms - 25
2025-04-29T18:58:51:905 [0.1.0] http:   GET /api/credits.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 200 8.418 ms - 98
2025-04-29T18:58:51:909 [0.1.0] debug:  No new event messages. Latest event message date: 2025-06-04T13:00:00.000Z
2025-04-29T18:58:51:911 [0.1.0] http:   GET /api/inbox.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 200 4.263 ms - 12
2025-04-29T18:58:54:984 [0.1.0] debug:  guild invite failed due to MongoServerError: E11000 duplicate key error collection: openWF.guildmembers index: allianceId_1_guildId_1 dup key: { allianceId: null, guildId: ObjectId('680f59916c7554aad67dc22f') }
2025-04-29T18:58:54:985 [0.1.0] http:   POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 9.472 ms - 30
Trying to invite this account that isn't in a clan yet, but the game says the player is already in a clan, when it isn't the case. The console also outputs an error. <img width="1440" alt="{7B1CC54C-96D7-4940-AB54-B400FF903FE8}.png" src="attachments/8d59b0ad-6739-4936-9708-e8db014e8bae"> <img width="479" alt="{57276A29-EDFA-4C43-9CC1-2321343B138F}.png" src="attachments/63203d6e-8528-4dda-b69a-2b23cf12ff83"> ``` 2025-04-29T18:58:28:090 [0.1.0] http: POST /api/guildTech.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI&guildId=680f59916c7554aad67dc22f 200 77.465 ms - 19 2025-04-29T18:58:32:086 [0.1.0] debug: guild invite failed due to MongoServerError: E11000 duplicate key error collection: openWF.guildmembers index: allianceId_1_guildId_1 dup key: { allianceId: null, guildId: ObjectId('680f59916c7554aad67dc22f') } 2025-04-29T18:58:32:087 [0.1.0] http: POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 8.978 ms - 30 2025-04-29T18:58:36:411 [0.1.0] http: POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 1.190 ms - 25 2025-04-29T18:58:51:905 [0.1.0] http: GET /api/credits.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 200 8.418 ms - 98 2025-04-29T18:58:51:909 [0.1.0] debug: No new event messages. Latest event message date: 2025-06-04T13:00:00.000Z 2025-04-29T18:58:51:911 [0.1.0] http: GET /api/inbox.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 200 4.263 ms - 12 2025-04-29T18:58:54:984 [0.1.0] debug: guild invite failed due to MongoServerError: E11000 duplicate key error collection: openWF.guildmembers index: allianceId_1_guildId_1 dup key: { allianceId: null, guildId: ObjectId('680f59916c7554aad67dc22f') } 2025-04-29T18:58:54:985 [0.1.0] http: POST /api/addToGuild.php?accountId=67d1c4cf77322d1aed16f26c&nonce=73664835705726&ct=MSI 400 9.472 ms - 30 ```
Owner

There shouldn't be a allianceId_1_guildId_1 index for guildmembers. Fix this in your database.

There shouldn't be a `allianceId_1_guildId_1` index for guildmembers. Fix this in your database.
Sign in to join this conversation.
No description provided.