curl error

Jump to solution
rob_callicotte
Community Contributor

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"

0 Likes
1 Solution
rob_callicotte
Community Contributor
Author

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);

View solution in original post

0 Likes