I ran into a pretty major AvatarEditorService
issue, my code was working for past ~2 months, and without any change, it suddenly stopped working. Upon inspection, InventoryPages:AdvanceToNextPageAsync() has started throwing 404 errors, this is despite the fact that InventoryPages.isFinished is still false (furthermore I only ever receive one page, while my inventory contains far more than just 25 items)
For reference, here’s my code: (note that in the actual game, I did have handling incase the user denied access, but this was in a testing place to make sure the problem was not unique to one game/place)
local aeService = game:GetService(`AvatarEditorService`)
aeService:PromptAllowInventoryReadAccess()
aeService.PromptAllowInventoryReadAccessCompleted:Wait()
local pages = aeService:GetInventory(Enum.AvatarAssetType:GetEnumItems())
local assets = {}
local iter = 0
while not pages.IsFinished and task.wait() do
iter +=1
local currentPage = pages:GetCurrentPage()
print(currentPage)
for i, v in pairs(currentPage) do
assets[#assets + 1] = v
end
local suc, err = pcall(function()
print(pages.IsFinished)
pages:AdvanceToNextPageAsync()
end)
if err then print(err) end
end
And here is my output: (line 14 prints currentPage, line 19 prints InventoryPages.IsFinished, and 22 prints the pcall error)
I do not believe there is anything I am missing since everything is pointing to an internal error in the class, but if I did something wrong, please do correct me.