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

failure using type="google_contacts" (type="google_calendar" works with same client_id, client_secret and token) #1082

Open
valpmakt opened this issue Aug 2, 2023 · 4 comments

Comments

@valpmakt
Copy link

valpmakt commented Aug 2, 2023

I get the following error when trying to use the "google_contacts" type.

Note that calendar sync against the same gmail account using the same client_id, client_secret and token are working fine.

vdirsyncer -v DEBUG -c migrate-contacts-user_at_gmail.com-to-localfiles.conf discover
Discovering collections for pair sync_contacts
critical: Failed to initialize user_at_gmail_dot_com
critical: - google_contacts storage doesn't take the parameters: type

Debian Bookworm using the distribution packaged vdirsyncer.

vdirsyncer version 0.19.0

python version Python 3.11.2

migrate-contacts-user_at_gmail.com-to-localfiles.conf:

a = "user_at_gmail_dot_com"
b = "localfiles"
collections = ["from a", "from b"]
conflict_resolution = "a wins"

metadata = ["displayname"]

[storage user_at_gmail_dot_com]
type = "google_contacts"
token_file = "~/.vdirsyncer/token/user_at_gmail.com"
client_id = "redacted"
client_secret = "redacted"

[storage localfiles]
type = "filesystem"
path = "~/.vdirsyncer/archive/local-contact-replicas/user_at_gmail.com"
fileext = ".vcf"

@valpmakt
Copy link
Author

valpmakt commented Aug 6, 2023

I get the identical error if I use a different (empty) token file.

@WhyNotHugo
Copy link
Member

Did you enable both APIs (caldav and carddav) in Google's console?

@valpmakt
Copy link
Author

valpmakt commented Oct 15, 2023 via email

@axet
Copy link

axet commented Jan 10, 2024

duplicate of #994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants