Skip to content

Unable to sync certain folders #111

Description

@highorbit25

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 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions