Hi @antweb,
After migrating to the sqldelight2 branch (thanks a lot for your insights for that step), I've encountered some errors/warnings when handling tickets. While the database migrations seem to be applied correctly and order data is looks OK, libpretixsync is reporting some missing json fields so I thought to report it here just in case it may be related to the migration.
e.g.
val checkResult = checkProvider.check(
conf.eventSelectionToMap(),
ticketid = rawResult,
source_type = sourceType,
answers = answers,
ignore_unpaid = ignoreUnpaid,
with_badge_data = withBadgeData,
scanType,
allowQuestions = allowQuestions
)
INFO: Handling ticket
...
org.json.JSONException: JSONObject["payments"] not found.
at org.json.JSONObject.get(JSONObject.java:596)
at org.json.JSONObject.getJSONArray(JSONObject.java:789)
at eu.pretix.libpretixsync.models.db.OrderExensionsKt.parsePendingTotal(OrderExensions.kt:66)
at eu.pretix.libpretixsync.models.db.OrderExensionsKt.toModel(OrderExensions.kt:25)
at eu.pretix.libpretixsync.check.AsyncCheckProvider.checkOfflineWithData(AsyncCheckProvider.kt:616)
at eu.pretix.libpretixsync.check.AsyncCheckProvider.check(AsyncCheckProvider.kt:609)
at eu.pretix.libpretixsync.check.TicketCheckProvider.check$default(TicketCheckProvider.kt:160)
at eu.pretix.scan.tickets.data.TicketCodeHandler.handleScan(TicketCodeHandler.kt:120)
org.json.JSONException: JSONObject["refunds"] not found.
at org.json.JSONObject.get(JSONObject.java:596)
at org.json.JSONObject.getJSONArray(JSONObject.java:789)
at eu.pretix.libpretixsync.models.db.OrderExensionsKt.parseRefunds(OrderExensions.kt:100)
at eu.pretix.libpretixsync.models.db.OrderExensionsKt.toModel(OrderExensions.kt:27)
at eu.pretix.libpretixsync.check.AsyncCheckProvider.checkOfflineWithData(AsyncCheckProvider.kt:616)
at eu.pretix.libpretixsync.check.AsyncCheckProvider.check(AsyncCheckProvider.kt:609)
at eu.pretix.libpretixsync.check.TicketCheckProvider.check$default(TicketCheckProvider.kt:160)
at eu.pretix.scan.tickets.data.TicketCodeHandler.handleScan(TicketCodeHandler.kt:120)
Example order data: https://pretix.eu/control/event/iosdemo/democon/orders/BFUBF/
Hi @antweb,
After migrating to the sqldelight2 branch (thanks a lot for your insights for that step), I've encountered some errors/warnings when handling tickets. While the database migrations seem to be applied correctly and order data is looks OK, libpretixsync is reporting some missing json fields so I thought to report it here just in case it may be related to the migration.
e.g.
Example order data: https://pretix.eu/control/event/iosdemo/democon/orders/BFUBF/