# leaderboardRecordsList woes

**URL:** <https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276>\
**Category:** Runtime Framework\
**Created:** [January 18, 2022, 1:32am UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276 "2022-01-18T01:32:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [January 18, 2022, 1:32am UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276/1 "2022-01-18T01:32:02Z")

</div>

Two issues.

1. Calling `let list = this.nk.leaderboardRecordsList( this.leaderboardId );` results in the following error:  
`rpc error: code = Internal desc = TypeError: expects an array of owner ids or null at github.com/heroiclabs/nakama/v3/server.(*runtimeJavascriptNakamaModule).leaderboardRecordsList.func1 (native) `

2. Calling `let list = this.nk.leaderboardRecordsList( this.leaderboardId, ["00000000-0000-0000-0000-000000000000"] );` returns zero records in either `list.records` or `list.ownerRecords`. Below is a screenshot of the leaderboard record I’m trying to access.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/fa712f5afe94796c4d7ed359d3a2e78c6ade2957.png)

Halp? 🙂

1. Versions: Nakama {3.5}, Mac Docker},
2. Server Framework Runtime language (If relevant): Typescript

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [January 18, 2022, 9:41am UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276/3 "2022-01-18T09:41:44Z")

</div>

Hi @adbourdages,

With regards to your first issue, I can see that the documentation says it is an optional parameter but that the implementation suggests otherwise. We will double check the documentation and implementation for this to ensure they are correct going forward.

To your second issue, can you please explain why you would like to store a leaderboard record against the system user? Regardless, that function should ideally return the result, so if you wouldn’t mind raising an issue on the GitHub repository that would be very much appreciated and we can look into that.

---

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [January 18, 2022, 3:37pm UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276/4 "2022-01-18T15:37:57Z")

</div>

Thanks for taking a look at it.

Concerning your question about why use the system user, I was testing with the API explorer in the console and ended up using that userId. I’ve since tested with a non-system user and the same problem exists.

So the `leaderboardRecordsList` doesn’t appear to work at all? I’m guessing something is wrong with my setup!?

The server version reported by the Nakama console is 3.2.1+6790d453. The nakama-runtime used in the project is 1.21.0 (from the changelog). The whole thing runs inside Docker Desktop on a mac.

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [January 19, 2022, 9:20am UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276/5 "2022-01-19T09:20:03Z")

</div>

Thanks for the update. Can you try updating to the latest version of Nakama (3.10.0 as of writing this) and see if you experience the same issue?

---

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [January 19, 2022, 2:35pm UTC](https://forum.heroiclabs.com/t/leaderboardrecordslist-woes/2276/6 "2022-01-19T14:35:51Z")

</div>

Of course! Being new to docker, I cut and pasted the docker-compose.yml file from a sample or documentation page.

Obviously it works now. Thanks!
