Skip to content

Error when syncing: exceptions.NotFoundError(href) #1208

@mike-lloyd03

Description

@mike-lloyd03

I've configured a google_calendar storage and have completed the oauth flow. Discovery works. But when syncing, I get the below error:

error: Unknown error occurred for google_to_local/mike@example.com: /caldav/v2/mike@example.com/events/_ccrj0gs62cpo75ijgdj3ckrmcpb560p40e9occs3ccj164s38o9j6ujfd1nisorfdk_R20250124T170000@google.com.ics
error: Use `-vdebug` to see the full traceback.
debug:   File "/usr/lib/python3.14/site-packages/vdirsyncer/cli/tasks.py", line 74, in sync_collection
debug:     await sync.sync(
debug:     ...<7 lines>...
debug:     )
debug:   File "/usr/lib/python3.14/site-packages/vdirsyncer/sync/__init__.py", line 149, in sync
debug:     a_nonempty = await a_info.prepare_new_status()
debug:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/usr/lib/python3.14/site-packages/vdirsyncer/sync/__init__.py", line 69, in prepare_new_status
debug:     async for href, item, etag in self.storage.get_multi(prefetch):
debug:     ...<4 lines>...
debug:         self.set_item_cache(item.ident, item)
debug:   File "/usr/lib/python3.14/site-packages/vdirsyncer/storage/dav.py", line 551, in get_multi
debug:     raise exceptions.NotFoundError(href)

My config:

[general]
status_path = "~/.local/share/vdirsyncer/status/"

[storage example_google_calendar]
type = "google_calendar"
token_file = "~/.local/share/vdirsyncer/token_file"
client_id = "***"
client_secret = "***"
start_date = "datetime(2026, 1, 1)"
end_date = "datetime(2100, 1, 1)"

[storage local_calendar]
type = "filesystem"
path = "~/.local/share/khal/calendars/"
fileext = ".ics"

[pair google_to_local]
a = "example_google_calendar"
b = "local_calendar"
collections = ["mike@example.com"]
conflict_resolution = "a wins"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions