Moodle LTI 1.3 assignment get route gives "No context or unsupported content type" bad syntax error

Moodle LTI 1.3 assignment get route gives "No context or unsupported content type" bad syntax error

by Vinodya Bandara -
Number of replies: 1

Hello,
We are using LTI 1.3 tool in moodle 3.8(http://3plcgmoodleprd.prd-prsn.com/moodle38/)  and 3.9(http://3plcgmoodleprd.prd-prsn.com/moodle39/) versions. When we try to execute Moodle LTI 1.3 assignments get route it gives the following error of "400 No context or unsupported content-type". How can we resolve this?

Route: http://3plcgmoodleprd.prd-prsn.com/moodle38/mod/lti/services.php/{moodleCourseId}/lineitems?type_id={typeId}

{
    "status": 400,
    "reason": "No context or unsupported content type",
    "request": {
        "method": "GET",
        "url": "/moodle38/mod/lti/services.php/{moodleCourseId}/lineitems?type_id={typeId}",
        "accept": "*/*"
    }
}


Average of ratings: -