[GH-ISSUE #185] SQLiteConstraintException - io.heckel.ntfy.up.BroadcastReceiver$register$1.invokeSuspend (BroadcastReceiver.kt:77) #145

Closed
opened 2026-05-07 00:20:33 +02:00 by BreizhHardware · 1 comment

Originally created by @binwiederhier on GitHub (Mar 23, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/185

android.database.sqlite.SQLiteConstraintException: 
  at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId (Native Method)
  at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId (SQLiteConnection.java:940)
  at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId (SQLiteSession.java:790)
  at android.database.sqlite.SQLiteStatement.executeInsert (SQLiteStatement.java:89)
  at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert (FrameworkSQLiteStatement.java:51)
  at androidx.room.EntityInsertionAdapter.insert (EntityInsertionAdapter.java:64)
  at io.heckel.ntfy.db.SubscriptionDao_Impl.add (SubscriptionDao_Impl.java:118)
  at io.heckel.ntfy.db.Repository.addSubscription (Repository.kt:72)
  at io.heckel.ntfy.up.BroadcastReceiver$register$1.invokeSuspend (BroadcastReceiver.kt:77)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:571)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:678)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:665)
Originally created by @binwiederhier on GitHub (Mar 23, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/185 ``` android.database.sqlite.SQLiteConstraintException: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId (Native Method) at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId (SQLiteConnection.java:940) at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId (SQLiteSession.java:790) at android.database.sqlite.SQLiteStatement.executeInsert (SQLiteStatement.java:89) at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert (FrameworkSQLiteStatement.java:51) at androidx.room.EntityInsertionAdapter.insert (EntityInsertionAdapter.java:64) at io.heckel.ntfy.db.SubscriptionDao_Impl.add (SubscriptionDao_Impl.java:118) at io.heckel.ntfy.db.Repository.addSubscription (Repository.kt:72) at io.heckel.ntfy.up.BroadcastReceiver$register$1.invokeSuspend (BroadcastReceiver.kt:77) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:665) ```
BreizhHardware 2026-05-07 00:20:33 +02:00
Author
Owner

@binwiederhier commented on GitHub (Mar 23, 2022):

Fixed in github.com/binwiederhier/ntfy-android@1a9e271dbe

<!-- gh-comment-id:1075784767 --> @binwiederhier commented on GitHub (Mar 23, 2022): Fixed in https://github.com/binwiederhier/ntfy-android/commit/1a9e271dbe438b7002afcb3b6c0923cc8cb76fe7
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#145
No description provided.