etesync / etesync-web

An EteSync web client
https://www.etesync.com
GNU Affero General Public License v3.0
245 stars 29 forks source link

.vcf contact import: invalid line (no token \";\" or \":\") #214

Open wmww opened 3 years ago

wmww commented 3 years ago

When I try to import a .vcf file with contacts, it says "An error has occurred, please contact developers.". In the console, this is logged:

Object { message: "invalid line (no token \";\" or \":\") \"=E2=80=A2=E2=80=93=E2=80=A2=E2=80=A2=20=E2=80=A2=E2=80=93=E2=80=A2=E2=\"", name: "ParserError", stack: "ICAL.parse</i._handleContentLine@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25943\ni/<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25160\nICAL.parse</i._eachLine@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:28760\ni@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25131\nd/<@https://pim.etesync.com/static/js/main.07f1e2c2.chunk.js:1:243312\na/<@https://pim.etesync.com/static/js/main.07f1e2c2.chunk.js:1:241953\nc@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671477\ns/o._invoke</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671231\ny/</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671836\nr@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8712\nA@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8916\ni/</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8975\ni/<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8855\n" }

When I tried to reproduce with a minimal .vcf file, I got this slightly different error:

Object { message: "Invalid parameters in 'TEL;CELL:555-555-5555'", name: "ParserError", stack: "ICAL.parse</i._handleContentLine@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25744\ni/<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25160\nICAL.parse</i._eachLine@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:28760\ni@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:25131\nd/<@https://pim.etesync.com/static/js/main.07f1e2c2.chunk.js:1:243312\na/<@https://pim.etesync.com/static/js/main.07f1e2c2.chunk.js:1:241953\nc@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671477\ns/o._invoke</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671231\ny/</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:1671836\nr@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8712\nA@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8916\ni/</<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8975\ni/<@https://pim.etesync.com/static/js/2.b050421f.chunk.js:2:8855\n" }

The minimal file that produces the 2nd error (which does not contain personal data) is attached (with the extension changed to .txt to make GitHub happy): contacts-minimal.txt