I've got a Plugin which is heavily dependent on Studio being able to access the API Services is there a way to detect this being disabled and then I can prompt the user to turn it on or the Plugin won't work?
Does this have to do with this?
game.HttpRbxApiService
HttpRbxApiService
is a modified version of HttpService
used by Roblox Admins.
We can find out if code is properly run using the pcall()
function.
To find out if http service works, try this in studio:
local hs = game:GetService("HttpService") local success,fail = pcall(function() hs:PostAsync("http://www.google.com") end) if success and not fail then print("Http works!") else print("Something went wrong!") end
If this helped, accept the answer so we both get reputation! :)
I've given your answer a go but it appears it's just triggering as failed each time even if the API Services have access see screenshot below.
Here is a screenshot of the error note I added my custom error message and it was still doing the same even without my custom error message.