1

Closed

LtiOutcomesHelper.PostScore throws exception

description

Hi,

LtiOutcomesHelper.PostScore throws exception when serviceUrl is not properly formed or not available.
It happens in CreateLtiOutcomesRequest method
line 235
ms.CopyTo(webRequest.GetRequestStream());

and in caller CreateLtiOutcomesRequest is not wrapper in try ... catch
            var webRequest = CreateLtiOutcomesRequest(              
            imsxEnvelope, 
            serviceUrl, 
            consumerKey, 
            consumerSecret);

        try
        {
            var webResponse = webRequest.GetResponse() as HttpWebResponse;
            return ParsePostResultResponse(webResponse);
        }
        catch (Exception)
        {
            return false;
        }
Could you wrap it?
Closed Aug 22, 2014 at 7:06 PM by afmiller
Fixed in changeset 106509.

comments

afmiller wrote Aug 22, 2014 at 7:05 PM

Good suggestion!