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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 29 Jun 2014 03:51 PM |
| filip where are you calling it from? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 29 Jun 2014 03:52 PM |
| Mine is happening with points server. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|
|
| 29 Jun 2014 04:01 PM |
@blade
disable loadstring to enable points |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|