This error is coming from the datastore2 module I have in my game.
502: API Services rejected request with error. HTTP 500 (Internal Server Error)
It’s coming from this module script:
This line, to be more specific:
Code here
function OrderedBackups:Get()
return Promise.async(function(resolve)
resolve(self.orderedDataStore:GetSortedAsync(false, 1):GetCurrentPage()[1])
end):andThen(function(mostRecentKeyPage)
if mostRecentKeyPage then
local recentKey = mostRecentKeyPage.value
self.dataStore2:Debug("most recent key", mostRecentKeyPage)
self.mostRecentKey = recentKey
return Promise.async(function(resolve)
resolve(self.dataStore:GetAsync(recentKey))
end)
else
self.dataStore2:Debug("no recent key")
return nil
end
end)
end
Is this a harmless error? A script that uses ds2 in my game is malfunctioning and I think this may be why.