HTTP Request call is returning 499!!
needs info
Xander Lopez
Whenever any inworld scripted device is making http call, it is coming back with 499 Error code. This started to happen april 20, 2024, 9am slt
Log In
Maestro Linden
needs info
Maestro Linden
Hi Xander, is this issue still occurring for you? Do you also get a 499 when you try the script pasted below?
HTTP requests with this script are working for me, with consistent 200 responses.
key http_request_id;
string url = "https://google.com";
default
{
touch_start(integer detected)
{
llOwnerSay("Sending request to " + url);
http_request_id = llHTTPRequest(url, [], "");
llResetTime();
}
http_response(key request_id, integer status, list metadata, string body)
{
if(request_id == http_request_id )
{
llOwnerSay("Got http response after " + (string)llGetTime() + "s. Data from " + url + " status: "
+ (string)status + " metadata: '" + llList2CSV(metadata) + "'\nbody:\n '" + body + "'");
}
else
{
llOwnerSay("Strange, got unknown http_response id " + (string)request_id);
}
}
}