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 » Scripting Helpers
Home Search
 

Re: Service Unavailable - Data Store Service

Previous Thread :: Next Thread 
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
29 Jun 2014 03:44 PM
I continue to get "Service Unavailable" randomly error every now and again on a line where I'm accessing the Data Store Service. This has been going on for a month, I can track the error with Google Analytic.

Yes, I'm in a game server when it occurs.
No, I'm not going over the request limit when it occurs.
I've made a system to check it does not go over the request limit.
You don't need the code because it randomly happens on any line in any script that requests data store.

Sorry if some people are fed up with me asking me this. I'm just trying to find someone who knows why this is happening, it breaks everything. If you have nothing valid to post then don't post.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 03:50 PM
Okay so I got it RECENTLY(sorry for making you sound like an idiot on the other thread), but I believe the problem is where you're calling it from.
Where is the script located and have you changed the location recently?
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
29 Jun 2014 03:51 PM
I posted a similar thread a few days ago with the same issue.
It died because nobody knew the answer. ._.
If anyone knows, PLEASE tell us why this is happening

~The herp lerped a derp~
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 03:51 PM
filip where are you calling it from?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 03:52 PM
oh and what type of script is it, do you ever try to call it locally?
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
29 Jun 2014 03:52 PM
4 of the scripts that call it are located within Workspace, they have always been in workspace and havent been moved around.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
29 Jun 2014 03:52 PM
Mine is happening with points server.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
29 Jun 2014 03:53 PM
No I don't call it in Local Scripts.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
29 Jun 2014 03:53 PM
points service*
I corrected myself, I hate when I forget stuff
Yeah.. ok.. bai.

The official scripter of.. um.. print(';')..? Um.. I'm confused c.c
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 04:00 PM
can you post the line?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
29 Jun 2014 04:01 PM
@blade

disable loadstring to enable points
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
29 Jun 2014 04:07 PM
It's just the typical datastore lines the connection to data store just randomly disappears i guess. Here's a few then.

Map3plys = NumGameSave:GetAsync("Map3")

NumGameSave:IncrementAsync("Map1",1)
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
29 Jun 2014 04:44 PM
Just one script in ServerScriptService...

-- Loading/joining:
local DataStoreService = game:GetService("DataStoreService")
local PlayerStats = DataStoreService:GetDataStore(tostring(player.userId), DataPrefix.."PlayerStats")
local statstable = PlayerStats:GetAsync("Stats")

-- Saving/leaving:
PlayerStats:SetAsync("Stats", statstable)

~The herp lerped a derp~
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
29 Jun 2014 04:53 PM
You could always wait until it is available..? I don't know why this happens so you could try this:

game:GetService("ScriptContext").Error:connect(function(message, trace, script)
print(script.Name,"errored! RESTARTING!")
wait(1/30)
for _ = 1,2 do
script.Disabled = not script.Disabled
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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