File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
connectors/supabase/src/commonMain/kotlin/com/powersync/connector/supabase Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,14 @@ public class SupabaseConnector(
185185 transaction.complete(null )
186186 } catch (e: Exception ) {
187187 if (errorCode != null && PostgresFatalCodes .isFatalError(errorCode.toString())) {
188+ /* *
189+ * Instead of blocking the queue with these errors,
190+ * discard the (rest of the) transaction.
191+ *
192+ * Note that these errors typically indicate a bug in the application.
193+ * If protecting against data loss is important, save the failing records
194+ * elsewhere instead of discarding, and/or notify the user.
195+ */
188196 Logger .e(" Data upload error: ${e.message} " )
189197 Logger .e(" Discarding entry: $lastEntry " )
190198 transaction.complete(null )
You can’t perform that action at this time.
0 commit comments