i recently created a leaderboard that basically displays global stats using an ordered data store. However, starting today, it stopped working due to this error:
14:27:24.657 - Players:GetNameFromUserId() failed because HTTP 404 (NotFound)
14:27:24.660 - Stack Begin
14:27:24.694 - Script 'ServerScriptService.PointsDataStore', Line 88
14:27:24.696 - Stack End
I suspect it might be an internal error? If so, who else is having this problem? If not, maybe something wrong with my code? Ehh, Ill just post my code anyways:
wait(3) -- precaution to prevent server loading before client
while true do
data = {}
local DataStorePages = PointsDataStore:GetSortedAsync(false, 12, 1, 10e30)
local top = DataStorePages:GetCurrentPage()
for _, v in ipairs(top) do
local points = v.value
local username = Players:GetNameFromUserIdAsync(v.key) --> problem here
table.insert(data, {username, points})
end
game.ReplicatedStorage.GlobalLeaderboard:FireAllClients(data)
wait(60)
end