DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key

  1. Data error
    DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = List

  2. script

local dss = game:GetService("DataStoreService")
local feedbackDS = dss:GetDataStore("Feedback beta")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local feedbackData = {}

local success, errorMessage = pcall(function()
	feedbackData = feedbackDS:GetAsync("List") or {}
end)


local re = ReplicatedStorage:WaitForChild("FeedbackRE")

re.OnServerEvent:Connect(function(plr, feedback)
	if string.len(string.gsub(feedback, " ", "")) > 0 then

		local success, errorMessage = pcall(function()
			feedback = game:GetService("TextService"):FilterStringAsync(feedback, plr.UserId)
			feedback = feedback:GetNonChatStringForBroadcastAsync()
		end)		

		if success then			
			local timeOfFeedback = os.time()
			local plrSent = plr.Name			

			table.insert(feedbackData, {plrSent, feedback, timeOfFeedback})

			local success, err = pcall(function()				
				feedbackDS:SetAsync("List", feedbackData)
			end)
		end
	end
end)

while wait(5) do	
	local success, errorMessage = pcall(function()
		feedbackData = feedbackDS:GetAsync("List") or {}
	end)

	ReplicatedStorage:WaitForChild("FeedbackFolder"):ClearAllChildren()

	for i, feedbackInfo in pairs(feedbackData) do		
		local plrName = feedbackInfo[1]
		local feedback = feedbackInfo[2]
		local timeSent = feedbackInfo[3]

		local timeValues = os.date("*t", timeSent)
		local formattedTime = timeValues["hour"] .. ":" ..  timeValues["min"] .. ":" .. timeValues["sec"]
		local formattedDate = timeValues["day"] .. "/" .. timeValues["month"] .. "/" .. timeValues["year"]
		local combinedTime = formattedTime .. "  " .. formattedDate		

		local str = Instance.new("StringValue")
		str.Name = plrName .. " - " .. combinedTime
		str.Value = feedback
		str.Parent = ReplicatedStorage:WaitForChild("FeedbackFolder")
		wait(300) 
		str:Destroy()
	end
end
  1. Explanation
    i found out that the the cause of the error was in the part containing the word List, but it was not resolved, so i uploaded it to the devforum

This isn’t an error, it’s just there to tell you not to spam requests. It’s nothing to worry about (basically just tells you that data is saving).

This error just means that youre sending too many requests to the DataStore, and i would assume the source of the error is in your while wait(5) do function.

Just slow down the loop to 20 seconds, and use task.wait() instead of wait().

No, this warning pops up no matter how many times you save data, even if only once. There is nothing to worry about until it tells you that the data is not being saved from too many requests.

I fully understand this error, as i have dealt with it many times as i was still learning LUAU.
If the poster is getting this error continuously though, then it will become a problem, as it will stop saving data.

1 Like

Why do you think it’s not an error?

Because it’s not a mistake, it’s a warning. But, in this case, it acts as a reminder and a warning at the same time.

1 Like

But I think the warning is also similar to the error

Essentially, it isnt an error in the way that it wont stop the script, and it is more of a warning.
Just slow down the data loading and saving (by a lot) and you’ll see this error dissapear.

If you dont understand the error, it just means that the datastore you are using is getting overloaded, as you are making too many save requests to it.

The datastore has an unspecified amount of save requests it can do, before it stops doing new requests, until the queue is empty enough.

1 Like