Skip to main content

We've been using static links in Box to send config.xml files to the Canvas API for a number of years now without issue.  Sometime near the beginning of this year, the Canvas API started returning 400 errors when using Box static links in our API calls.  The exact same file will work when using another service with the link publicly available (i.e. Google Drive).  Did something change?

Example call:

curl -X POST \
'https://{{canvas_instance}}/accounts/{{account_id}}/external_tools' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-IU-Authorization: {{api_key}}' \
-H 'cache-control: no-cache' \
-d '{ "name": "Unlock Course",
"consumer_key": "canvas.lti.courseunlocker",
"shared_secret" : "",
"config_type": "by_url",
"config_url": "https://iu.box.com/shared/static/94unpurt11haakrww51fb6bp3z5rxxfa.xml" }
'


Hi ,


 


Could you please post out the full HTTP response detail of the 400 error (bad request) that you're seeing please? Since the file is directly accessible that might give us the most insight into what might be happening. 


 


Thanks,


Jon



Bad Typo on my part.it's actually giving 500 errors. The response body is:



{

"errors": [

{

"message": "An error occurred.",

"error_code": "internal_server_error"

}

],

"error_report_id": 275703837

}




Reply