Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sync certain folders #111

Open
highorbit25 opened this issue Jan 28, 2024 · 3 comments
Open

Unable to sync certain folders #111

highorbit25 opened this issue Jan 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@highorbit25
Copy link

Describe the bug
Certain folders within a module cannot be synced

To Reproduce
Steps to reproduce the behavior:

  1. Sync for CS2102
  2. Only Folders 'Cases', 'course_image' synced
  3. Missing Folders 'Finals', 'Guide', 'Midterms', 'Slides', 'Tutorials'
    'Finals' and 'Midterms' Folder are locked and inaccessible on Canvas so non-issue

Expected behavior
'Guide', 'Slides', 'Tutorials' Folder should be able to sync

Screenshots
Canvas:
image
Synced by Lominus:
image
Logs:
`[2024-01-29 01:13:42] WARNING - json: cannot unmarshal object into Go value of type []interfaces.CanvasFileObject (C:/Program Files/lominus-development_290124/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:162)

[2024-01-29 01:13:43] WARNING - json: cannot unmarshal object into Go value of type []interfaces.CanvasFileObject (C:/Program Files/lominus-development_290124/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:162)

[2024-01-29 01:13:43] WARNING - json: cannot unmarshal object into Go value of type []interfaces.CanvasFileObject (C:/Program Files/lominus-development_290124/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:162)`

Desktop (please complete the following information):

  • OS: Microsoft Windows 10 Home
  • Version: latest dev branch 290124, not working on v2.1.0 as well

Additional context
Issue might be from unsupported folder/file configurations on Canvas.
Observed within tutorials folder, tutorial 'T01.pdf' has a scheduled release configuration
image

Let me know if more clarifications needed! Thanks 👍

@Beebeeoii
Copy link
Owner

Hi, thanks for the report.

Could you check for me if:

  1. the folders that are missing ("guides", "slides", "tutorials") actually have files inside? Lominus will not create those folders if there are no files inside. In other words, it will not create empty folders.
  2. If there are files inside, those files are available for download normally through Canvas. Lominus cannot download files that are not released, locked etc.

Thanks!

@highorbit25
Copy link
Author

Yes, the missing folders all have files inside, and can be downloaded normally through Canvas.
image
image
image
Thanks!

@Beebeeoii Beebeeoii added the bug Something isn't working label Jan 29, 2024
@Beebeeoii
Copy link
Owner

Weird issue as this issue is because of Canvas returning an error 403 Forbidden even though user is able to access the files within the folder normally via the website.

instructure/canvas-lms#2306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants