I wrote a pretty rudimentary Python script that finds a course's root folder ID then upload files to it via the ZIP File Importer API. I noticed that the "https://montclair.instructure.com/api/v1/courses/:course_id/folders" API sometimes responds with nothing, so the script will wait a bit and try the request again if that happens. I noticed that trying again isn't so successful at times until I access the course via my browser. For some reason, once I access the course through the browser, Canvas suddenly starts passing back the expected response through the API. Is there a reason why accessing the course via my browser would kickstart the Canvas API?
Thanks in advance!