• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-1319
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Babbage Linden
Reporter: Bunny Halberd
Votes: 5
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono: http_response event broken

Created: 29/Jan/08 03:37 PM   Updated: 08/Aug/08 08:53 AM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: 1.24 Server

File Attachments: 1. File rabbitStatsCollector.lsl (19 kB)

Environment:
Second Life 1.18.6 (77968) Jan 29 2008 20:06:25 (Second Life Release)

You are at 255657.5, 255388.0, 20.6 in Sandbox Goguen MONO located at sim3000.aditi.lindenlab.com (8.2.33.226:13006)
Mono 1.18.6.77968

CPU: Intel Core 2 Series Processor (2333 MHz)
Memory: 2047 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8600 GTS/PCI/SSE2
OpenGL Version: 2.1.2
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 0/16881 (0.0%)
Viewer Digest: 3bb91f71-43e8-7bd9-be82-8ffb1b7bdf10
Issue Links:
Relates
 

Linden Lab Issue ID: DEV-9889
Linden Lab Internal Branch: mono-based-on-77880


 Description  « Hide
Compile of the below snippet fails with error: "Assemble to CLI failed. Please try again later." The same script works and runs fine in LSL.

default
{
http_response(key k, integer s, list m, string b)
{

}
}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Siann Beck added a comment - 29/Jan/08 05:15 PM
This appears to be related to HTTP requests, as this simple script produces the same error:

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

http_response (key keyID, integer intStatus, list lstMetadata, string strBody) { llOwnerSay(strBody); }
}

Further, I have two versions of a tip jar script, identical except that one uses HTTP and the other doesn't. They both work fine in LSL, but the HTTP version won't compile to Mono.


Gigs Taggart added a comment - 29/Jan/08 05:18 PM
OK, I boiled it down to this snippet:

default
{
http_response(key k, integer s, list m, string b)
{

}
}


Strife Onizuka added a comment - 29/Jan/08 10:26 PM
This could be related to SVC-1229

Day Oh added a comment - 30/Jan/08 09:03 AM
llHTTPRequest also fails to compile

default
{
state_entry()

{ llHTTPRequest("http://google.com", [], ""); }

}


Scouse Linden added a comment - 31/Jan/08 09:11 AM
Compiler fix. Does not require a full redeploy.

Alvargi Daniels added a comment - 04/Feb/08 11:28 AM
Script with both llHTTPRequest and http_response now compile in mono, however the http_response event does not get called.

=============== snip ========================
key httpReq;

default
{
state_entry()

{ httpReq = llHTTPRequest("http://www.google.com",[HTTP_METHOD,"GET"],""); llSay(0,"Request:" + (string)httpReq); }

http_response(key request_id, integer status, list metadata, string body)

{ llSay(0,"Response:"); llSay(0,(string)request_id); llSay(0,(string)status); llSay(0,(string)llList2CSV(metadata)); llSay(0,body); }

}


Salahzar Stenvaag added a comment - 06/Feb/08 11:35 AM
I confirm: any script calling httprequest simply are ignored, no http_response called. Since at least 75% of my scripts rely on httprequest, mono is mostly unusable for me

Alvargi Daniels added a comment - 06/Feb/08 11:50 AM
Is Major good enough for this pup or should this get elevated?

Alvargi Daniels added a comment - 06/Feb/08 06:56 PM
Love that proactive answer to my question Scouse - thanks!

Vektor Linden added a comment - 08/Feb/08 05:21 PM
This looks like it is working now.

Alvargi Daniels added a comment - 08/Feb/08 07:32 PM
Confirmed both http and https for "GET" and "PUT" methods. http headers were also confirmed. I did not test POST or DELETE. Thanks!

Milo Linden added a comment - 30/Jul/08 10:24 AM
All list metadata's are failing as per the above script, reopened

key httpReq;

default
{
state_entry()

{ httpReq = llHTTPRequest("http://www.google.com",[HTTP_METHOD,"GET"],""); llSay(0,"Request:" + (string)httpReq); }

http_response(key request_id, integer status, list metadata, string body)

{ llSay(0,"Response:"); llSay(0,(string)request_id); llSay(0,(string)status); llSay(0,(string)llList2CSV(metadata)); llSay(0,body); }

}


Milo Linden added a comment - 30/Jul/08 05:21 PM
Fixed internally

Periapse Linden added a comment - 08/Aug/08 08:53 AM
passed QA on aditi