[Opensim-users] Strange error on master when using llHTTPRequest on master

Chris M mewtwo0641 at gmail.com
Sun Jul 7 00:42:37 UTC 2013


I believe I may have stumbled across the issue; it seems that in the 
http_response(key id, integer status, list meta, string body) event, 
status always contains 499 and body always contains "The remote server 
returned an error: (status code) Some string" instead of the actual 
status number and the string sent back in body by the server I'm 
connecting to as expected on LL grid and on OS 0.7.5

For example, If I put llSay(0, (string)status + llUnescapeURL(body)); in 
my script I see this: "499 The remote server returned an error: (404) 
Not Found." instead of "404 NOTFOUND: Missing item name here" "NOTFOUND: 
Missing item name here" is the string  in body from the database server.

I can parse the string to extract the the correct status code with this:
list temp = llParseString2List(llUnescapeURL(body), ["The remote server 
returned an error: ", "(", ")"], []);
integer new_status = llList2Integer(temp, 0);

and proceed from there.

The "NOTFOUND: Missing item name here" string sent back in body by the 
database server is lost though (whether I extract the status code from 
the string or not), and the script depends on that information to 
determine what wasn't found, and act accordingly to it.

Was this change in how the status codes are handled intentional?

I apologize if the entire explanation seems confusing and/or long 
winded; but this was a very confusing thing for me to try to write out :)

On 7/2/2013 8:53 PM, Chris M wrote:
> Hello all, I have a roleplay HUD that I scripted that uses 
> llHTTPRequest to query an external database server for usernames and 
> profiles and then use that data to configure the HUD accordingly.
>
> On the latest master I'm encountering a strange message in chat that 
> I'm not sure what to make of:
> 499 The remote server returned an error: (300) Ambiguous Redirect.
>
> The database server console seems to be getting the request and 
> sending the data back... but no data seems to be received by the HUD 
> and it fails to configure the HUD.
>
> On commit 3611d33 (r/22387) it all works fine and as expected with no 
> errors.
>
> Unfortunately that is all the info I can think of to give; but is 
> anyone seeing this as well?


-- 
OpenSim: 10 Region Standalone on 0.7.6 Dev
Physics: Open Dynamics Engine
OS: Windows 7 (x64)
CPU: AMD Phenom II X4 840 3.2 GHz
Memory: 11 GB DDR3
Database: MySQL 5.1.63 (x64)




More information about the Opensim-users mailing list