IonMich / instructor_pilot

Automate Instructor/TA Tasks and integrate with Canvas API
Apache License 2.0
4 stars 2 forks source link

no response after click the Sync from Canvas #83

Open xuelingqin opened 2 months ago

xuelingqin commented 2 months ago

As the title suggest, no any response if I click the button "Sync from Canvas " This issue show up when I update the program to current version and it only happens on Windows. This could be a Conda environment problem.

To Reproduce Steps to reproduce the behavior:

  1. run the server and login
  2. click add next to my course or
  3. click the "Sync from Canvas" or "add manually"

Expected behavior no response both in the Anaconda prompt and the browser the prompt remains: [02/Sep/2024 23:39:50] "GET / HTTP/1.1" 200 9874 [02/Sep/2024 23:39:51] "GET /static/courses/user_list.css HTTP/1.1" 304 0

Entering an old course or add the course manually at (http://127.0.0.1:8000/admin/courses/course/) then if I try to use "Sync from Canvas" in the course, it reports Only GET requests are allowed. Reload to see the changes.

Desktop (please complete the following information):

Additional context I tried to remove all files and reinstall the whole program, or change the token, or update Conda (which makes nothing new). No special things happens.

IonMich commented 2 months ago

Thank you for reporting this @xuelingqin! I will try to reproduce and let you know later today.

xuelingqin commented 2 months ago

Not urgent, I have a Mac that everything works.

IonMich commented 2 months ago

Good to hear that. I also verified that the issue does not appear after a clean install of conda in Ubuntu 22.04+Chrome. Will try Windows next.

By the way, it might be useful additionally to know the following:

xuelingqin commented 2 months ago

My "django" version is 4.1.7

You are right, there is an error on the browser: This error occurs when I enter the page 127.8. (not even click on the button)

When I enter the course and click on "Sync from Canvas", another error occurs:

**

later another error occurs (don't find when this shows up)

IonMich commented 2 months ago

Thank you for the helpful additional information @xuelingqin. I just clean-installed the app on a Windows machine and things went smoothly - I can add and update courses from Canvas. I am wondering if this is a browser cache issue. Since the main error here is Cannot read properties of null (reading 'querySelector'), it seems to me that the app retrieves an outdated version of a javascript file, that might be stored in your browser cache. Does reloading the home page while clearing the cache (Ctrl+Shift+R) resolve the issue maybe? This is the last step of the update instructions, and a frequent cause of similar issues.

IonMich commented 1 month ago

Hello @xuelingqin, did you by any chance check if the issue on Windows is resolved by deleting the browser cache for Instructor Pilot (Ctrl+Shift+R)? I have not been able to reproduce it.