[ARCHIVED] Retrieving error_attachments from SIS feed status

Jump to solution
hknapp
Community Novice

When I check on the status of my SIS Import I get an error in the Status JSON file that returns.

In the JSON section "error_attachment" I see values for uuid, display_name, URL, and filename. Two questions; is there any data that can help understand the error by pulling the file and if so How do you get this file. I have tried different curl commands but I can't fine the correct API request to get this file identified in filename attribute. Has anyone done that?

- Harold

**** Example JSON section ***********
"errors_attachment": {

"media_entry_id": null,

"display_name": "sis_errors_attachment_69.csv",

"uuid": "U7YhiP6N9jSXW7qtJ9rAdA77wj8T1p3xEtqDTpzv",

"unlock_at": null,

"url": "https://college.instructure.com/files/937/download?download_frd=1&verifier=RandomLetterandNumbers123...",

"lock_at": null,

"created_at": "2020-07-13T19:47:43Z",

"mime_class": "file",

"modified_at": "2020-07-13T19:47:43Z",

"updated_at": "2020-07-13T19:47:43Z",

"filename": "168880000000000069_processing_warnings_and_errors2020-07-13+19%3A47%3A43+UTC20200713-13179-z0x24e.csv",

Labels (2)
1 Solution
hknapp
Community Novice
Author

Rebecca,

Thanks for the suggestion. I figured it out. If I read the JSON and then

get the URL and use wget and enclose the URL in double quotes; because of

the character set in the url you can just use the url straight up, then

append -O and filename I get what I am looking for.

Thanks .. Harold

errors_attachment": {

"media_entry_id": null,

"display_name": "sis_errors_attachment_70.csv",

"uuid": "y6Ls24kwXPBPn4g1sCLvwsETEiZlyG1l0XxFOD0p",

"unlock_at": null,

"url": "

https://hc.test.instructure.com/files/939/download?download_frd=1&verifier=Letters&numbers-stuff1234...

",

wget "

https://hc.test.instructure.com/files/939/download?download_frd=1&verifier=Letters&numbers-stuff1234things"

-O errordoc.txt

On Tue, Jul 14, 2020 at 6:00 PM Rebecca Penina Simon <instructure@jiveon.com>

View solution in original post

0 Likes