Constant 499 errors
closed
Xander Lopez
My sim "Pandemonium" has a lot of gaming script running. I run various http call to my hosting provider so the game data gets updated.
For past 3 days, about 80% of http call has been returning error code 499, and I am not sure why we are getting this issue. only 20% of the https makes to the server.
Log In
Maestro Linden
closed
Closing for lack of response.
Maestro Linden
needs info
A 499 error code from an LSL HTTP request generally indicates that the remote site did not respond within 60 seconds.
Does the remote site respond when you repeat the same HTTP request from another region or entirely outside of SL?
Xander Lopez
Maestro Linden could i ask what would be the maximum http calls we can make in 1 minute? and here are the answer to yours:
1)Does the remote site respond when you repeat the same HTTP request from another region
=> This also happens in our sister sim "elynlon" which has fewer traffic.
2) entirely outside of SL?
=> it never takes more than 60 seconds to get result on web browser. In fact, it doesn't even take 5 seconds to get the result.
Maestro Linden
Xander Lopez: The throttling information is available here; there are a few different levels: https://wiki.secondlife.com/wiki/LlHTTPRequest#Throttles
Could you share a simple repro script (similar to what you have for your google.com test) which demonstrates the timeout with your site? You can send it to me in-world if you (understandably) don't want to post it publicly.
Xander Lopez
i tried the following script and got 200 return code. so i am trying to see if this is something to do with my hosting provider?
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);
}
}
}