Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 26 Jun 2016 09:34 AM |
I get this error when I try to use GetAsync in ROBLOX Studio, and it only happens for a single key that I use and does not happen for any other key on the same DataStore.
10:32:25.543 - HTTP 0 (HTTP 429 (HTTP/1.1 429 ProvisionedThroughputExceeded))
Why am I getting this error on only one key and not any other key in the same DataStore??
|
|
|
| Report Abuse |
|
|
TaaRt
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 5039 |
|
|
| 26 Jun 2016 09:36 AM |
| What's the supp0sed value st0red? |
|
|
| Report Abuse |
|
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 26 Jun 2016 09:40 AM |
The value is a number and it is the amount of money that the player has.
|
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 09:41 AM |
| Post your code, We can't really help if we can't see how you setup your code. |
|
|
| Report Abuse |
|
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 26 Jun 2016 09:48 AM |
The keys are structured to it is "MoneyData"..player.UserId This line of code works perfectly fine when using GetAsync for another player:
print(game:GetService("DataStoreService"):GetDataStore("DataStore1"):GetAsync("MoneyData71483921"))
>> 420
This line produces an error:
print(game:GetService("DataStoreService"):GetDataStore("DataStore1"):GetAsync("MoneyData95751035"))
>> 10:47:50.199 - HTTP 0 (HTTP 429 (HTTP/1.1 429 ProvisionedThroughputExceeded))
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 26 Jun 2016 09:50 AM |
might be because you're sending too many requests
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
hypur
|
  |
| Joined: 22 May 2015 |
| Total Posts: 17043 |
|
| |
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 26 Jun 2016 09:54 AM |
Those two lines I gave are not the actual code, but here is the actual code:
DS = game:GetService("DataStoreService"):GetDataStore("DataStore1") function saveMoneyData(player) DS:SetAsync("MoneyData"..player.UserId, game.ServerStorage.PlayerData["MoneyData:"..player.UserId].Value) end game.Players.PlayerAdded:connect(function(player) local newMoneyValue = Instance.new("IntValue", game.ServerStorage.PlayerData) newMoneyValue.Name = "MoneyData:"..player.UserId local playerMoneyValue = DS:GetAsync("MoneyData"..player.UserId) if playerMoneyValue ~= nil then newMoneyValue.Value = playerMoneyValue elseif playerMoneyValue == nil then newMoneyValue.Value = 12345 saveMoneyData(player) end end) game.Players.PlayerRemoving:connect(function(player) saveMoneyData(player) end)
|
|
|
| Report Abuse |
|
|
wish_z
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 233 |
|
|
| 26 Jun 2016 09:59 AM |
It's an internal error. Nothing you can do to fix it.
Here is what I did to "fix" it:
function repeatLoad(update) local returnVal repeat wait() local success, fail = pcall(function() returnVal = update() end) if fail ~= nil then wait(.25) print("DataError: "..fail) end until fail == nil return returnVal end
repeatLoad(function() return ds:GetAsync("Progress") end) |
|
|
| Report Abuse |
|
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
| |
|