# /polls/voters.json returning duplicate users across paged requests

**URL:** <https://meta.discourse.org/t/polls-voters-json-returning-duplicate-users-across-paged-requests/376636>\
**Category:** Bug\
**Tags:** polls, pr-welcome, rest-api\
**Created:** [July 30, 2025, 11:06pm UTC](https://meta.discourse.org/t/polls-voters-json-returning-duplicate-users-across-paged-requests/376636 "2025-07-30T23:06:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![clechasseur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clechasseur/32/517802_2.png) [@clechasseur](https://meta.discourse.org/u/clechasseur)\
**Post date:** [August 20, 2025, 6:18am UTC](https://meta.discourse.org/t/polls-voters-json-returning-duplicate-users-across-paged-requests/376636/10 "2025-08-20T06:18:26Z")

</div>

After some experimentation, I was unable to craft a test that caused the non-deterministic ordering to cause a problem with returned voters. I think this is because of the way the query is crafted and because of how the poll votes are created, but I am not 100% certain.

I’ve created a PR with my test and the fixes I propose: [FIX: Avoid returning duplicate voters from `/polls/voters.json` endpoint by clechasseur · Pull Request #34433 · discourse/discourse](https://github.com/discourse/discourse/pull/34433)

---

_[View the full topic](https://meta.discourse.org/t/polls-voters-json-returning-duplicate-users-across-paged-requests/376636)._
