Jump to content

Error 499 on trying to obtain resources from second life


VirtualKitten
 Share

You are about to reply to a thread that has been inactive for 69 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

HI everyone

 

I m trying to obtain resources from secondlife events but from HTTPRequest only obtaining 499 i opened request ticket #2169194
Created on Sun, 11 Feb at 5:52 AM Does anyone have any ideas please how to resole this?

 

my url and code is quite simple :

string url;
key http_request_id;
integer l_status;
string body;
integer bodylength= 2048; 
throw_exception(string inputString)
{
    key owner = llGetOwner();
    llInstantMessage(owner, inputString);
 
 
    llResetScript();
}

default
{
    state_entry()
    {
        url =  "http://search.secondlife.com/?query_term=Galadriel%27s&search_type=standard&collection_chosen=events&maturity=gma
";
        http_request_id = llHTTPRequest(url, [HTTP_METHOD,"GET",HTTP_USER_AGENT, "LSL_Script(Mozilla Compatible)",                                             HTTP_MIMETYPE, "application/x-www-form-urlencoded",  HTTP_VERIFY_CERT,FALSE, 
                          HTTP_BODY_MAXLENGTH,bodylength], "");
    }

    http_response(key request_id, integer status, list metadata, string body)
    {
        
        l_status = status;
        if (request_id != http_request_id) return;// exit if unknown
        if ((string)status == URL_REQUEST_DENIED)
              throw_exception("The following error occurred while attempting to get a free URL for this device:\n \n" + body);
        if(status != 200) {
            llOwnerSay("HTTPRequest Status: " + (string)status);
            //llSay(0,body);
            //llSay(0,llDumpList2String(metadata,","));
           if(status == 404)  {
                 body = url+ "\n 404 Not Found";
                
           }  
           if(status == 500)  {
                 body = url+ "\n 500 Not Found";
                
           }
            if(status == 499)  {
               llSetTimerEvent(25);                 
           }   
        }
        vector COLOR_BLUE = <0.0, 0.0, 1.0>;
        float  OPAQUE     = 1.0;

        llSetText(body, COLOR_BLUE, OPAQUE);
    
    }
    timer() {
       if(l_status == 499) { 
        http_request_id = llHTTPRequest(url, [HTTP_METHOD,"GET",HTTP_USER_AGENT, "LSL_Script(Mozilla Compatible)",                                             HTTP_MIMETYPE, "application/x-www-form-urlencoded",  HTTP_VERIFY_CERT,FALSE, HTTP_BODY_MAXLENGTH
                ,bodylength], "");
        }
    }
}

 

Is there also the event font available for use with FURWARE text mesh:display with extra  shapes in it that the event window has?

6ee28909496f61ec456ec8b4f49c5811.thumb.png.8af818e1032531061c6b93239aa6eed0.png

 

Edited by VirtualKitten
cleaning up added image
Link to comment
Share on other sites

  • VirtualKitten changed the title to Error 499 on trying to obtain resources from second life

The font in second life is 11:00am til 1:00 SLT ☀ Sunday with DJ Denise & Sandar\n 03/10/24 at 02:30 PM. 

But am getting question marks  instead of  clock and other symbol in FURWARE 2.01.

Yes I missed the == but its still returning 499

 

Thanks Marvin  but its still getting 499 the throttle time is supposed to be 20s i gave 25 i have also tried 50 with no luck any ideas please

Edited by VirtualKitten
Link to comment
Share on other sites

19 minutes ago, Marvin Benelli said:

499 means your requests get throttled so you may have to increase the timer delay to get a proper response

Yes but it returns this in first place for no reason with or without the timer, so something else must be wrong

Link to comment
Share on other sites

Okay, first the good news: @VirtualKitten: you're not crazy

I tried the search myself and it looks like every call to http://search.secondlife.com is rejected with status 499 even this simplified one:

default{
    state_entry(){
        llHTTPRequest("http://search.secondlife.com", [], "");
    }

    http_response(key request_id, integer status, list metadata, string body){
        llOwnerSay("HTTPRequest Status: " + (string)status);        
    }
}

From the wiki it looks like this url is not supported by linden:

NOTE: This API and its documentation are NOT provided or supported by Linden Lab. Linden Lab does not guarantee that this API works as described or works at all. Use at your own risk!

I do understand VirtualKitten's frustration as http://search.secondlife.com/?q=a works in a regular browser but seems to internally blocked when called via LSL.

Any ideas?

  • Like 1
Link to comment
Share on other sites

This started about two weeks ago.  Worse on weekends.  But any llHTTPRequest calls are coming back with error 499.  I killed fully half of my scripts that were using llHTTPRequest and the problem is still there.

Link to comment
Share on other sites

FOLLOWUP! It turns out that the problem was not SL.   A runaway web crawler was doing (perhaps unintentional) a DDoS attack on another sub domain on my server.   I blocked all the IP addresses from the culprit and that solved the problem.   What you want to check to make sure that you are not being throttled is the key that is returned from the llHTTPRequest function.  If it comes back as a NULL_KEY,, that means that your script(s) is hitting the SL server too fast and you are being throttled.   A complete discussion can be found in the LSL manual for llHTTPRequest.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 69 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...