usu-accessibility / canvas-file-to-page-archive

A utility that uses the Blackboard Ally API to convert a file to a Canvas page.
MIT License
1 stars 3 forks source link

Tool crashes during 'Processing' #2

Open specsoft4283 opened 1 year ago

specsoft4283 commented 1 year ago

Hi! We stumbled across this tool and are excited to try and implement it, so thank you so much for creating this resource.

I am working on getting it working in our Canvas instance, but the tool crashes right after the 'Processing' pop-up with the gif shows. I can confirm...

I've attached the code snippet appended to our Canvas JavaScript file, as well as a brief video of the error in question. Any help would be appreciated.

https://user-images.githubusercontent.com/121257531/209209172-dafebd0c-b3ee-49de-b68d-c49158a623de.mov

Code snippet:

$.getScript("https://my.uiw.edu/_dev/ally-api/js/convert.js", function () { console.log('convert.js loaded'); });

// Convert Ally PDF HTML to Canvas page $(window).on('load', function () { if (($.inArray('admin', ENV.current_user_roles) !== -1 || $.inArray('teacher', ENV.current_user_roles) !== -1) && document.location.href.indexOf('/files') > -1) { $.getScript("https://my.uiw.edu/_dev/ally-api/js/convert.js", function () { console.log('PDF to Canvas Page Ran'); }); } });

specsoft4283 commented 1 year ago

Update: I have worked with our network team to fix some of the errors and view the logs, so now, the only error I receive is the one below.

Screenshot 2022-12-22 at 2 50 45 PM
usu-access commented 1 year ago

Thank you for reporting this issue - we will look into it, but it may take us a few weeks. I will report back if we can identity a solution.

usu-access commented 1 year ago

Our developer has reviewed the issue and he indicated that the issue was that for some reason the JavaScript was not finding the Dom element that we use titled "ef-item-row". I don't know why that would be working in our instance, but not in yours, but perhaps that is helpful in looking at it. At this point we have limited resources to do much work on this - but hope to revisit it and potentially spend some more time on it in the future. Sorry we can't be more helpful.