I’m really new with proxies and I barely understand it, so basically I’m trying to make an external web server to check something, but that isn’t really the main problem right now. I’m doing a few tests with it:
Google script
function doGet(e) {
var output;
try
{
var response = "BOOM!!!"
output = {'result':"success", "response":JSON.parse(response)}
}
catch(e)
{
output = {'result':'error', "response":"unable to fetch"}
}
return ContentService.createTextOutput(JSON.stringify(output)).setMimeType(ContentService.MimeType.JSON)
}
Roblox:
local ID = "--------" -- you dont need to see this
local url = "https://script.google.com/macros/s/" .. ID .. "/exec"
local HTTPService = game:GetService("HttpService")
local json = HTTPService:GetAsync(url)
print(HTTPService:JSONDecode(json))
basically just trying to get the “BOOM!!!” response, but it keeps returning error {‘result’:‘error’, “response”:“unable to fetch”}
Any ideas? and yes, HTTP request is enabled