I have a datastore that holds player data. For some reason, when I try to :GetAsync the data for my user ID, it returns error 502 DnsResolve. When I try to :GetAsync the data for any other user ID, it works perfectly fine.
local DataStoreService = game:GetService("DataStoreService") local PlayersDataStore = DataStoreService:GetDataStore("Players") local Success, PlayerData = pcall(function() return PlayersDataStore:GetAsync(0) --Where I store my player data template end) print(Success, PlayerData) --true table: 0x001b6d8bf2866b07 local Success, PlayerData = pcall(function() return PlayersDataStore:GetAsync(UserId) --Only my user ID fails?? end) print(Success, PlayerData) --true 502: API Services rejected request with error. HTTP unknown error (HttpError: DnsResolve)
I seemed to have fixed the problem by doing:
PlayersDataStore:SetAsync(UserId, "Test")
Certainly something backend was erroneous.
https://devforum.roblox.com/t/502-api-services-rejected-request-with-error-http-0-http-403/270575
So I noticed something 20 minutes ago i was on my main account DevOfLua this error only appears when the game owner isn’t testing it in the studio as you can see in this picture I am on my ALT CorePackages and it throws 502 error
If I login to my main account DevOfLua
Datastore works fine, so I guess this is team create issue.