AnsweredAssumed Answered

Getting a 422 (Unprocessable entity) error when attempting to execute grade passback

Question asked by Dave Alvarado on May 3, 2018
Latest reply on May 9, 2018 by Peter Love

I'm trying to get Canvas grade passbook to work.  I'm submitting to the endpoint

 

https://canvas.instructure.com/api/lti/v1/tools/208981/grade_passback

 

with the Authorization header

 

OAuth oauth_body_hash="6MfU9ZcvzMc6XPbdd1PNwiTF1d8=",oauth_nonce="ZiKbzAr8iYsoaUvEFKVV8t1tSrLnhfL6",oauth_signature="0J0XinNaZycfv0UoHcSpCJGYm6M=",oauth_consumer_key="OBSCURED",realm="",oauth_version="1.0",oauth_timestamp="1525367433",oauth_signature_method="HMAC-SHA1"

 

and the Content-Type header of "application/xml".  Below is teh body of the request...

 

<?xml version="1.0" encoding="UTF-8"?>

<imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">

  <imsx_POXHeader>

    <imsx_POXRequestHeaderInfo>

      <imsx_version>V1.0</imsx_version>

      <imsx_messageIdentifier>3vG8bzKSKnQznI6Hk9alccMTlvHu0SqQ</imsx_messageIdentifier>

    </imsx_POXRequestHeaderInfo>

  </imsx_POXHeader>

  <imsx_POXBody>

    <replaceResultRequest>

      <resultRecord>

        <sourcedGUID>

          <sourcedId>208981-1290816-8386147-13666019-c6d8c979d6aa1b99f7b8b4947f6135f474e1111a</sourcedId>

        </sourcedGUID>

        <result>

          <resultScore>

            <language>en</language>

            <textString>0.08333333333333333</textString>

          </resultScore>

  <resultData>

            <text>text data for canvas submission</text>

          </resultData>

        </result>

      </resultRecord>

    </replaceResultRequest>

  </imsx_POXBody>

</imsx_POXEnvelopeRequest>

 

This is resulting in a  422 Unprocessable Entity error.  Can someone shed light on what this error means and what I can do to fix it?

Outcomes