https://kotlinlang.org logo
#confetti
Title
# confetti
j

John O'Reilly

12/03/2023, 11:18 AM
Merged following but import failing for some reason.....will take a closer look https://github.com/joreilly/Confetti/pull/1033
cc @xxfast
Copy code
ERROR 2023-12-03T11:16:41.019790Z kotlinx.datetime.DateTimeFormatException: java.time.format.DateTimeParseException: Text '2023-12-09T04:30:00Z' could not be parsed, unparsed text found at index 19 at kotlinx.datetime.LocalDateTime$Companion.parse(LocalDateTime.kt:62) at dev.johnoreilly.confetti.backend.import.Sessionize.getData(Sessionize.kt:449) at dev.johnoreilly.confetti.backend.import.Sessionize.access$getData(Sessionize.kt:20) at dev.johnoreilly.confetti.backend.import.Sessionize$getData$1.invokeSuspend(Sessionize.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Caused by: java.time.format.DateTimeParseException: Text '2023-12-09T04:30:00Z' could not be parsed, unparsed text found at index 19 at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2055) at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1954) at java.base/java.time.LocalDateTime.parse(LocalDateTime.java:494) at java.base/java.time.LocalDateTime.parse(LocalDateTime.java:479) at kotlinx.datetime.LocalDateTime$Companion.parse(LocalDateTime.kt:60) ... 11 more
  {
    "textPayload": "kotlinx.datetime.DateTimeFormatException: java.time.format.DateTimeParseException: Text '2023-12-09T04:30:00Z' could not be parsed, unparsed text found at index 19\n\tat kotlinx.datetime.LocalDateTime$Companion.parse(LocalDateTime.kt:62)\n\tat dev.johnoreilly.confetti.backend.import.Sessionize.getData(Sessionize.kt:449)\n\tat dev.johnoreilly.confetti.backend.import.Sessionize.access$getData(Sessionize.kt:20)\n\tat dev.johnoreilly.confetti.backend.import.Sessionize$getData$1.invokeSuspend(Sessionize.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)\n\tat kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)\n\tat kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)\nCaused by: java.time.format.DateTimeParseException: Text '2023-12-09T04:30:00Z' could not be parsed, unparsed text found at index 19\n\tat java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2055)\n\tat java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1954)\n\tat java.base/java.time.LocalDateTime.parse(LocalDateTime.java:494)\n\tat java.base/java.time.LocalDateTime.parse(LocalDateTime.java:479)\n\tat kotlinx.datetime.LocalDateTime$Companion.parse(LocalDateTime.kt:60)\n\t... 11 more",
    "insertId": "656c639900004d4ee7579992",
    "resource": {
      "type": "gae_app",
      "labels": {
        "version_id": "20231203t111241",
        "module_id": "import",
        "zone": "us-west1-8",
        "project_id": "confetti-349319"
      }
    },
    "timestamp": "2023-12-03T11:16:41.019790Z",
    "severity": "ERROR",
    "labels": {
      "clone_id": "0087599d42a2605a949a0eac34d2f7d8c5e2139c6bd1c8b5a3a5d3ceec92a5ec8c855109e7f03007c96240c19f8071e38ae6ffd44fe6356e82deb5244850f63a3051"
    },
    "logName": "projects/confetti-349319/logs/stderr",
    "receiveTimestamp": "2023-12-03T11:16:41.023328744Z",
    "errorGroups": [
      {
        "id": "CPH2v4m94aqIHA"
      }
    ]
  }
s

Stylianos Gakis

12/03/2023, 11:23 AM
2023-12-09T04:30:00Z
does not like to be parsed into DateTime?
Is the
Z
a problem there since it’s
DateTime
and not an
Instant
?
j

John O'Reilly

12/03/2023, 11:23 AM
looking at other sessionize links it does seem to be the difference e.g. https://sessionize.com/api/v2/g3y2wy77/view/All
x

xxfast

12/03/2023, 11:24 AM
Shall i turn this off? 🤔
s

Stylianos Gakis

12/03/2023, 11:24 AM
Yeah give that a shot
x

xxfast

12/03/2023, 11:24 AM
try now?
j

John O'Reilly

12/03/2023, 11:25 AM
yep, that worked!
🙌 1
Screenshot_20231203-112536.png
🦜 3
m

mbonnin

12/03/2023, 3:02 PM