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

Contact could not be saved #462

Closed
DanLeonelli opened this issue Jan 23, 2018 · 28 comments
Closed

Contact could not be saved #462

DanLeonelli opened this issue Jan 23, 2018 · 28 comments
Labels
needs info Not enough information provided

Comments

@DanLeonelli
Copy link

DanLeonelli commented Jan 23, 2018

Steps to reproduce

  1. Create new contact
  2. Add more than 5 fields
  3. Try with notes/anniversary/adding photo

Expected behaviour

Contact saved

Actual behaviour

Error: "Contact could not be saved"

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page) 12.0.4

Contacts version: (see Nextcloud apps page) 2.0.1

Updated from an older Nextcloud or fresh install: Fresh install

screen shot 2018-01-23 at 5 53 52 pm

I've even tried clearing the cache (as mentioned in the closed topics regarding this issue), using other browser (Safari and Chrome) and I get the same error...

@skjnldsv
Copy link
Member

We'll need the console log of your browser please :)

@skjnldsv skjnldsv added the needs info Not enough information provided label Feb 13, 2018
@skjnldsv
Copy link
Member

Bump?

@jovaniedelacruz
Copy link

I have a similar issue too: my instance is freshly updated and I can't create a contact and any info I put into a new contact is lost shortly after. Also, I can't click on any other contact. I'm not sure how to get a console log.

@skjnldsv
Copy link
Member

@Jovanie what browser do you use? :)

@jovaniedelacruz
Copy link

jovaniedelacruz commented Feb 23, 2018 via email

@skjnldsv
Copy link
Member

You can press F12 to see the browser log then :)
Open it then reload the page and edit your contact

@ghost
Copy link

ghost commented Feb 27, 2018

I have the same issue, and I'm using Chrome.

@skjnldsv
Copy link
Member

@pinowthebird same answer, I need your browser log :)

@ghost
Copy link

ghost commented Feb 28, 2018

"Luckily" it occurs often.
image

@skjnldsv
Copy link
Member

@pinowthebird can you post the response of the first 400 put failure request please?

@ghost
Copy link

ghost commented Feb 28, 2018

It seems to happen when I switch between contacts.

image

@skjnldsv
Copy link
Member

I mean the response :)
In the network tab

@ghost
Copy link

ghost commented Feb 28, 2018

image

@skjnldsv
Copy link
Member

One more step, click the failed request and click the "response tab". Sorry 🙈

@ghost
Copy link

ghost commented Feb 28, 2018

No problem, I was already on it.

image

@skjnldsv
Copy link
Member

Ah! Found it :D
Well, you have a failing contact, probably from a previous install?
Anyway, I'll suggest that you download it, and then import it again to generate a new uid.

@ghost
Copy link

ghost commented Feb 28, 2018

Both my install and the contacts are fresh. So if a contact is failed, it's been corrupted by NC Contacts itself. Most likely by the procedure that's described by TS in the first post.

@ghost
Copy link

ghost commented Feb 28, 2018

Also, I get the same error after deleting and recreating the contact.

@skjnldsv
Copy link
Member

@pinowthebird The import works?

@ghost
Copy link

ghost commented Feb 28, 2018

I deleted it, and started from scratch. That should result in a new UID as well?

If I export, delete and import again, then it fails. I get the following response:
"Calendar object with uid already exists in this calendar collection."

I did now notice that the Calendar has now two birthday events for the unexisting contact.

@ghost
Copy link

ghost commented Feb 28, 2018

I managed to start from scratch. And after a lot of testing I finally discovered what causes this issue:
Adding both a birthday and an anniversary. I haven't used nor tested date of death.

"Calendar object with uid already exists in this calendar collection."

@skjnldsv
Copy link
Member

Export, delete your contact, edit the vcf file and remove the UID line, re-import again.

@ghost
Copy link

ghost commented Feb 28, 2018

The issue remains. And that's because that contact isn't the issue.

The issue is every contact with both an anniversay and birthday. I've tried this with multiple contacts now. Both from scratch and adding an anniversary to contacts that already have a birthday registered.

The problem remains until the anniversary is removed again. Then the contact is fine.

You should be able to reproduce this easily.

@skjnldsv
Copy link
Member

This is very strange, I'll try soon :)
Could you create a new issue with your find? This issue has many differents issue and starts to look confusing ;)

@ghost
Copy link

ghost commented Feb 28, 2018

Done. #501

@christian-weiss
Copy link

@DanLeonelli i have a very similar issue in #507 and some findings. Can you confirm my findings with your issue?

@skjnldsv
Copy link
Member

As there is no feedback since a while I will close this ticket. If this is still happening please feel free to reopen.

@nepomuc
Copy link

nepomuc commented Mar 8, 2020

I run into this error (VCard object with uid already exists in this addressbook collection.) for a few contacts. It seems like if they still get imported, but I can't be entirely sure. Can anyone explain what could cause this weird behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Not enough information provided
Projects
None yet
Development

No branches or pull requests

5 participants