Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

API Services rejected request with error? HTTP 500 (Internal Server Error) [SOLVED BY ME]

Asked by 4 years ago
Edited 4 years ago

So in my game I have a couple savefiles which a player can save their data to and wipe the data. Whenever the press the reset button to reset a savefile this pops up:

18:25:55.953 - 502: API Services rejected request with error. HTTP 500 (Internal Server Error) 18:25:55.954 - Stack Begin 18:25:55.955 - Script 'ServerScriptService.DataHandler', Line 135 18:25:55.956 - Stack End

This is the script btw

01RS.DataController.RemoveData.OnServerEvent:Connect(function(player,desiredSaveFile)
02    if not savingData then
03        savingData = true
04        if desiredSaveFile == "SaveFile1" then
05            saveFileToRemove = saveFile1
06            print("Resetting Save1")
07        elseif desiredSaveFile == "SaveFile2" then
08            saveFileToRemove = saveFile2
09            print("Resetting Save2")
10        else
11            saveFileToRemove = saveFile3
12            print("Resetting Save3")
13        end
14        for dataIndex, data in pairs(saveFileToRemove) do
15            data:RemoveAsync(player.UserId)
View all 28 lines...

This line to be precise is line 135

1data:RemoveAsync(player.UserId)

Yesterday this code worked normally, but when I tried again today the error message suddenly popped up. Also this error pops up both when I play test in studio and when I enter the game from the roblox website. I can't find any error in my script but there may be. If it is a bug caused by roblox itself then I suppose there is nothing I can do about it.

2 answers

Log in to vote
0
Answered by 4 years ago

Glad you got it working again. For everyone else that is wondering why this happened, adopt me has struck again with their website breaking update, causing the whole website to break. This shut down the API Services.

0
You pretty much just explained everything! + 1 to you DeUltimate23 142 — 4y
0
Everything are good now ogi7yu 0 — 3y
Ad
Log in to vote
0
Answered by
ogi7yu 0
3 years ago

Same thing with my data stores today :(

Answer this question