opploJoin Date: 2008-12-09 Post Count: 5320 |
Been getting this error for weeks. Didn't happen yesterday with two full servers running but Analytics shows that this error has occurred today. It's so unpredictable I can't see any reason for it to be my fault.
If anyone is aware of why this is happening I would be incredible grateful if you could give me a reason. Also if anyone has any advice on how I may fix this then it would save the game. Ha pun..
This error only occurs on lines where I'm accessing the datastore service. "GetAsync" for example.
Could I possibly PCall it, I've tried "If game:GetService("DataStore") ~= nil then" and that doesn't help. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
Bump |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
"DataStoreService"
not "DataStore" |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
I know, it was just a quick example. |
|
vlekje513Join Date: 2010-12-28 Post Count: 9057 |
Too many requests? |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
No, ive tried spamming data store for a test and i didn't receive any errors. |
|
DevVinceJoin Date: 2008-11-08 Post Count: 9245 |
Well if more then one person is spamming the save button it can cause it if you don't have a wait timer/cool-down for it. (I would put a 1-2 Min wait timer)
(Depends on what your saving though) |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
I'm not being ignorant but I really don't think it's that issue or it would be much more well known. I cannot find any forum posts that are similar to myn. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
Bump. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
Bump |
|
|
Datastores are throttled. Do you have a system to prevent spammers? |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
People can't manually save. It saves everyones data at the end of each round, and a leaderboard slowly updates. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
On the verge of raging from this project. Bump.. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
can you just stop posting here? it automatically updates my last active threads. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
I'll do what I want with my thread thanks. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
noob, you are testing it in studio you buffoon, in order to use it properly, use it
online or on the SERVER mode in studio(it won't save there) |
|
|
I would recommend using :UpdateAsync() instead of :SetAsync() if you do to save values. Every other thread with this issue(including mine) has either been that the request limit has been reached or the DataStore is trying to retrieve a nil value. |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
I'm not using studio to test it you spack head people like you are the virus to this forum, read the first post.
Thanks jimmy, ill look into using update. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
so you weren't using updateasync?
I think you're the virus for not reading the wiki before coming here.
|
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
That's why i said GetASync in my example. I'm going to use lots of tables to store data instead. Ive been coding Lua for 5 years, of course i look at Wiki. All you've given me is useless feedback.
Thread closed. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
You never provided an example idiot, and just because you locked your post doesn't mean the thread is closed.
lrn2forum |
|
opploJoin Date: 2008-12-09 Post Count: 5320 |
I clearly did, grow up and stop flaming. This is a scripting forum, which you clearly cannot participate in. Now talk code or exit please. You were the one who wanted the thread to end. Any mature person on this site would stop posting after i end the thread. Owait.. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
if I can't participate in it, then why am I always receiving thank you's for helping? Also, you did not provide an example. -___-
I'll stop here since your logic is obviously flawed. |
|