Enough-Software / enough_icalendar

iCalendar library to parse, generate and respond to iCal / ics invites. Fully compliant with RFC 5545 (iCalendar) and RFC 5546 (iTIP).
Mozilla Public License 2.0
10 stars 9 forks source link

Not compatible with Google Calendar #2

Closed leschbenedikt closed 3 years ago

leschbenedikt commented 3 years ago

When trying to parse the Google Calendar Response the following error occurs;

Flutter Version; 2.2.3 Tried in Chrome

No property implementation found for X-WR-CALNAME:{email}@gmail.com Error: FormatException: Invalid duration: P0DT3H0M0S (for part [0DT3H0]) at Object.throw_ [as throw] (http://localhost:62444/dart_sdk.js:5041:11) at Function._parseSection (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:7659:19) at Function.parse (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:7744:46) at Function._parsePropertyValue (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3509:36) at properties.TriggerProperty.new.properties.Property.new (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3812:40) at new properties.TriggerProperty.new (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:5068:46) at Function.parseProperty (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3691:18) at Function.parseLines (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:1495:46) at Function.parse (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:1473:36) at getPrivateCalendar (http://localhost:62444/packages/home_control/calendar/data/data_sources/calendar_data_source.dart.lib.js:67:71) at getPrivateCalendar.next () at http://localhost:62444/dart_sdk.js:37403:33 at _RootZone.runUnary (http://localhost:62444/dart_sdk.js:37274:59) at _FutureListener.thenAwait.handleValue (http://localhost:62444/dart_sdk.js:32530:29) at handleValueCallback (http://localhost:62444/dart_sdk.js:33057:49) at Function._propagateToListeners (http://localhost:62444/dart_sdk.js:33095:17) at _Future.new.[_completeWithValue] (http://localhost:62444/dart_sdk.js:32943:23) at async._AsyncCallbackEntry.new.callback (http://localhost:62444/dart_sdk.js:32964:35) at Object._microtaskLoop (http://localhost:62444/dart_sdk.js:37526:13) at _startMicrotaskLoop (http://localhost:62444/dart_sdk.js:37532:13) at http://localhost:62444/dart_sdk.js:33303:9 No property implementation found for X-WR-CALNAME:{email}@gmail.com Error: FormatException: Invalid duration: P0DT3H0M0S (for part [0DT3H0]) at Object.throw_ [as throw] (http://localhost:62444/dart_sdk.js:5041:11) at Function._parseSection (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:7659:19) at Function.parse (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:7744:46) at Function._parsePropertyValue (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3509:36) at properties.TriggerProperty.new.properties.Property.new (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3812:40) at new properties.TriggerProperty.new (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:5068:46) at Function.parseProperty (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:3691:18) at Function.parseLines (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:1495:46) at Function.parse (http://localhost:62444/packages/enough_icalendar/src/components.dart.lib.js:1473:36) at getPrivateCalendar (http://localhost:62444/packages/home_control/calendar/data/data_sources/calendar_data_source.dart.lib.js:67:71) at getPrivateCalendar.next () at http://localhost:62444/dart_sdk.js:37403:33 at _RootZone.runUnary (http://localhost:62444/dart_sdk.js:37274:59) at _FutureListener.thenAwait.handleValue (http://localhost:62444/dart_sdk.js:32530:29) at handleValueCallback (http://localhost:62444/dart_sdk.js:33057:49) at Function._propagateToListeners (http://localhost:62444/dart_sdk.js:33095:17) at _Future.new.[_completeWithValue] (http://localhost:62444/dart_sdk.js:32943:23) at async._AsyncCallbackEntry.new.callback (http://localhost:62444/dart_sdk.js:32964:35) at Object._microtaskLoop (http://localhost:62444/dart_sdk.js:37526:13) at _startMicrotaskLoop (http://localhost:62444/dart_sdk.js:37532:13) at http://localhost:62444/dart_sdk.js:33303:9

robert-virkus commented 3 years ago

Released in v0.9.0