@powersync/service-errors 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codes.d.ts +22 -0
- package/dist/codes.js +23 -0
- package/dist/codes.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/codes.d.ts
CHANGED
|
@@ -145,6 +145,18 @@ export declare enum ErrorCode {
|
|
|
145
145
|
* you may ignore this warning.
|
|
146
146
|
*/
|
|
147
147
|
PSYNC_S1145 = "PSYNC_S1145",
|
|
148
|
+
/**
|
|
149
|
+
* Replication slot invalidated.
|
|
150
|
+
*
|
|
151
|
+
* The replication slot was invalidated by PostgreSQL, typically because
|
|
152
|
+
* WAL retention exceeded max_slot_wal_keep_size during a long-running
|
|
153
|
+
* snapshot. Increase max_slot_wal_keep_size on the source database and
|
|
154
|
+
* redeploy sync rules.
|
|
155
|
+
*
|
|
156
|
+
* Other causes: rows_removed (catalog rows needed by the slot were
|
|
157
|
+
* removed), wal_level_insufficient, idle_timeout (PG 18+).
|
|
158
|
+
*/
|
|
159
|
+
PSYNC_S1146 = "PSYNC_S1146",
|
|
148
160
|
/**
|
|
149
161
|
* Generic MongoServerError.
|
|
150
162
|
*/
|
|
@@ -246,6 +258,16 @@ export declare enum ErrorCode {
|
|
|
246
258
|
* * Older data has been cleaned up due to exceeding the retention period.
|
|
247
259
|
*/
|
|
248
260
|
PSYNC_S1500 = "PSYNC_S1500",
|
|
261
|
+
/**
|
|
262
|
+
* A replicated source table's capture instance has been dropped during a polling cycle.
|
|
263
|
+
*
|
|
264
|
+
* Possible causes:
|
|
265
|
+
* * CDC has been disabled for the table.
|
|
266
|
+
* * The table has been dropped, which also drops the capture instance.
|
|
267
|
+
*
|
|
268
|
+
* Replication for the table will only resume once CDC has been re-enabled for the table.
|
|
269
|
+
*/
|
|
270
|
+
PSYNC_S1601 = "PSYNC_S1601",
|
|
249
271
|
/**
|
|
250
272
|
* Generic internal server error (HTTP 500).
|
|
251
273
|
*
|
package/dist/codes.js
CHANGED
|
@@ -156,6 +156,18 @@ export var ErrorCode;
|
|
|
156
156
|
* you may ignore this warning.
|
|
157
157
|
*/
|
|
158
158
|
ErrorCode["PSYNC_S1145"] = "PSYNC_S1145";
|
|
159
|
+
/**
|
|
160
|
+
* Replication slot invalidated.
|
|
161
|
+
*
|
|
162
|
+
* The replication slot was invalidated by PostgreSQL, typically because
|
|
163
|
+
* WAL retention exceeded max_slot_wal_keep_size during a long-running
|
|
164
|
+
* snapshot. Increase max_slot_wal_keep_size on the source database and
|
|
165
|
+
* redeploy sync rules.
|
|
166
|
+
*
|
|
167
|
+
* Other causes: rows_removed (catalog rows needed by the slot were
|
|
168
|
+
* removed), wal_level_insufficient, idle_timeout (PG 18+).
|
|
169
|
+
*/
|
|
170
|
+
ErrorCode["PSYNC_S1146"] = "PSYNC_S1146";
|
|
159
171
|
// ## PSYNC_S12xx: MySQL replication issues
|
|
160
172
|
// ## PSYNC_S13xx: MongoDB replication issues
|
|
161
173
|
/**
|
|
@@ -260,6 +272,17 @@ export var ErrorCode;
|
|
|
260
272
|
* * Older data has been cleaned up due to exceeding the retention period.
|
|
261
273
|
*/
|
|
262
274
|
ErrorCode["PSYNC_S1500"] = "PSYNC_S1500";
|
|
275
|
+
// ## PSYNC_S16xx: MSSQL replication issues
|
|
276
|
+
/**
|
|
277
|
+
* A replicated source table's capture instance has been dropped during a polling cycle.
|
|
278
|
+
*
|
|
279
|
+
* Possible causes:
|
|
280
|
+
* * CDC has been disabled for the table.
|
|
281
|
+
* * The table has been dropped, which also drops the capture instance.
|
|
282
|
+
*
|
|
283
|
+
* Replication for the table will only resume once CDC has been re-enabled for the table.
|
|
284
|
+
*/
|
|
285
|
+
ErrorCode["PSYNC_S1601"] = "PSYNC_S1601";
|
|
263
286
|
// ## PSYNC_S2xxx: Service API
|
|
264
287
|
/**
|
|
265
288
|
* Generic internal server error (HTTP 500).
|
package/dist/codes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../src/codes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../src/codes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAsgBX;AAtgBD,WAAY,SAAS;IACnB,mCAAmC;IAEnC;;OAEG;IACH,wCAA2B,CAAA;IAE3B,qCAAqC;IAErC,iDAAiD;IAEjD,oCAAoC;IAEpC,+CAA+C;IAE/C,6CAA6C;IAE7C,wCAAwC;IAExC,gCAAgC;IAEhC;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;;OAQG;IACH,wCAA2B,CAAA;IAE3B,qCAAqC;IAErC;;;;;OAKG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;;;OASG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;OAGG;IACH,wCAA2B,CAAA;IAE3B,8CAA8C;IAE9C;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;;OAKG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;OAOG;IACH,wCAA2B,CAAA;IAE3B;;;;;;;;;OASG;IACH,wCAA2B,CAAA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;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B,kCAAkC;IAElC;;;;;;;;OAQG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B,oDAAoD;IAEpD;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;;OAGG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B,qDAAqD;IAErD,+CAA+C;IAE/C,4CAA4C;IAE5C;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B,mDAAmD;IAEnD;;OAEG;IACH,wCAA2B,CAAA;IAE3B,wCAAwC;IAExC;;;;OAIG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;;;OAIG;IACH,wCAA2B,CAAA;AAC7B,CAAC,EAtgBW,SAAS,KAAT,SAAS,QAsgBpB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/package.json
CHANGED