-
Notifications
You must be signed in to change notification settings - Fork 433
Open
Description
Bug Report
Version: v0.11.0 (91c4c15)
Command
gog contacts other delete otherContacts/<resourceName> --account user@gmail.com --force
Error
Google API error (400 badRequest): copyMask is required. Please specify one or more valid paths.
Root Cause
Found in internal/cmd/contacts_directory.go — the deleteOtherContact() function:
copied, err := otherSvc.OtherContacts.CopyOtherContactToMyContactsGroup(
resourceName,
&people.CopyOtherContactToMyContactsGroupRequest{},
).Do()The CopyOtherContactToMyContactsGroupRequest is passed empty, but the Google People API requires the CopyMask field to specify which fields to copy. Passing an empty struct triggers the 400 copyMask is required error.
Fix
Populate CopyMask with the relevant fields:
copied, err := otherSvc.OtherContacts.CopyOtherContactToMyContactsGroup(
resourceName,
&people.CopyOtherContactToMyContactsGroupRequest{
CopyMask: "names,phoneNumbers,emailAddresses,organizations,biographies",
},
).Do()Workaround
None available via CLI. The contacts other delete command is completely broken for all users.
Reproduction
- Have any
otherContacts/entries (auto-populated from Gmail interactions) - Run
gog contacts other delete otherContacts/<id> --account you@gmail.com --force - Observe 400 error
Impact
Any workflow that tries to clean up "Other Contacts" duplicates via gog is blocked.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels