curl error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
curl error - what is this? internal_server_error error_report_id:1213899
This happens after this -
curl --insecure -F attachment=<path>enrolls.csv -H
"Authorization: Bearer <AUTH>" "https://canvas.park.edu/api/v1/accounts/1/sis_imports.json?impor
t_type=instructure_csv"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
edit - my error above was because the @ sign I thought was part of the CURL URL was in fact not working. So I changed my code. Here's an example in C# --
This is what I'm doing for enrollment:
strAuth - this is the authorization access
string strExecute = "--insecure -F attachment=@" +
@"\\<path_for_this_file>\enrolls.csv " +
" -H " + "\"Authorization: Bearer " + strAuth + "\"" + " \"" +
"https://canvas.park.edu/api/v1/accounts/1/sis_imports.json?import_type=instructure_csv\"";
Process.Start(@"<path_for_this_file>\curl.exe", strExecute);