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

Issue updating a shared contact #9

Closed
krispayne opened this issue Aug 22, 2022 · 5 comments
Closed

Issue updating a shared contact #9

krispayne opened this issue Aug 22, 2022 · 5 comments
Assignees

Comments

@krispayne
Copy link

When updating a shared contact, stdout is empty, the return code is 1, and the log shows "Error creating shared contact: EOF"

The command used is:
gsm sharedContacts update --email "[email protected];primary=true;label=work;displayName=Jane Doe" --url "https://www.google.com/m8/feeds/contacts/example.com/base/exampleIDCode"

Expected result: a contact is updated.

As far as I can tell, I have enough required flags in the command. I have no issue listing, getting, or creating a contact.

@krispayne
Copy link
Author

krispayne commented Aug 22, 2022

I also notice that when creating a new shared contact, the email does not get added. Maybe this is why my updates are failing, since they are attempting to add email addresses:

[kris@gemini ~]% gsm sharedContacts create --domain "example.com" --givenName "Jane" --familyName "Doe" --email "displayName=Jane Doe;[email protected];primary=true" --phoneNumber "phoneNumber=+1 800 12345678;primary=true;label=Work" --organization "orgName=Jane Doe's Co"
<Entry gd="http://schemas.google.com/g/2005" xmlns="http://www.w3.org/2005/Atom">
	<where rel="" valueString="" href="">
		<entry>
			<id></id>
			<category scheme="" term=""></category>
			<content></content>
			<link rel="" type="" href=""></link>
			<postalAddress></postalAddress>
			<geoPt lat="" lon=""></geoPt>
			<phoneNumber></phoneNumber>
			<email address=""></email>
		</entry>
	</where>
	<name>
		<givenName>Jane</givenName>
		<additionalName></additionalName>
		<familyName>Doe</familyName>
		<namePrefix></namePrefix>
		<nameSuffix></nameSuffix>
		<fullName>Jane Doe</fullName>
	</name>
	<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact"></category>
	<title type="">Jane Doe</title>
	<id>http://www.google.com/m8/feeds/contacts/example.com/base/762c046a89bcb906</id>
	<updated>2022-08-22T22:59:15.536Z</updated>
	<content></content>
	<link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/example.com/762c046a89bcb906?v=3.0"></link>
	<link rel="self" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/example.com/full/762c046a89bcb906?v=3.0"></link>
	<link rel="edit" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/example.com/full/762c046a89bcb906/1661209155536413?v=3.0"></link>
	<organization label="" primary="" rel="http://schemas.google.com/g/2005#other">
		<orgDepartment></orgDepartment>
		<orgJobDescription></orgJobDescription>
		<orgName>Jane Doe&#39;s Co</orgName>
		<orgSymbol></orgSymbol>
		<orgTitle></orgTitle>
		<where></where>
	</organization>
	<phoneNumber rel="" primary="true" label="Work" uri="">+1 800 12345678</phoneNumber>
</Entry>%

The creation issue with email was solved by adding label=string, which was left out, but the update issue remains :-/

@hanneshayashi
Copy link
Owner

Thanks for the report! I can confirm that there seems to be an issue with updating shared contacts and it seems like it is related to a missing header. Not sure what changed, but I will take a look.
The fix will most likely make it into the next version of GSM (which I am currently working on), but it may take a week or two. Sorry about that.

@hanneshayashi hanneshayashi self-assigned this Aug 23, 2022
@krispayne
Copy link
Author

No problem, only just started testing so not in a hurry 😊

@krispayne krispayne reopened this Aug 23, 2022
@hanneshayashi
Copy link
Owner

Should hopefully be fixed in GSM v0.8.0. Please try it and feel free to close this issue if it works (or report back if it doesn't)

@krispayne
Copy link
Author

Seems to be working!

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

2 participants