generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GetAsync (HTTP 429) error?

Previous Thread :: Next Thread 
Baseness is not online. 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 is not online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
26 Jun 2016 09:36 AM
What's the supp0sed value st0red?
Report Abuse
Baseness is not online. 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
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
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 is not online. 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 is not online. 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 is not online. hypur
Joined: 22 May 2015
Total Posts: 17043
26 Jun 2016 09:50 AM
turn on httpservice!


Report Abuse
Baseness is not online. 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 is not online. 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 is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
26 Jun 2016 10:05 AM
Ok, thanks!


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image