@powersync/service-errors 0.2.1 → 0.3.0
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 +56 -0
- package/dist/codes.js +56 -0
- package/dist/codes.js.map +1 -1
- package/dist/errors.d.ts +19 -2
- package/dist/errors.js +27 -5
- package/dist/errors.js.map +1 -1
- package/package.json +1 -1
package/dist/codes.d.ts
CHANGED
|
@@ -199,6 +199,20 @@ export declare enum ErrorCode {
|
|
|
199
199
|
* Replication will be stopped for this Change Stream. Replication will restart with a new Change Stream.
|
|
200
200
|
*/
|
|
201
201
|
PSYNC_S1344 = "PSYNC_S1344",
|
|
202
|
+
/**
|
|
203
|
+
* Failed to read MongoDB Change Stream due to a timeout.
|
|
204
|
+
*
|
|
205
|
+
* This may happen if there is a significant delay on the source database in reading the change stream.
|
|
206
|
+
*
|
|
207
|
+
* If this is not resolved after retries, replication may need to be restarted from scratch.
|
|
208
|
+
*/
|
|
209
|
+
PSYNC_S1345 = "PSYNC_S1345",
|
|
210
|
+
/**
|
|
211
|
+
* Failed to read MongoDB Change Stream.
|
|
212
|
+
*
|
|
213
|
+
* See the error cause for more details.
|
|
214
|
+
*/
|
|
215
|
+
PSYNC_S1346 = "PSYNC_S1346",
|
|
202
216
|
/**
|
|
203
217
|
* Max transaction tries exceeded.
|
|
204
218
|
*/
|
|
@@ -219,10 +233,48 @@ export declare enum ErrorCode {
|
|
|
219
233
|
* Wait a while then retry the request.
|
|
220
234
|
*/
|
|
221
235
|
PSYNC_S2003 = "PSYNC_S2003",
|
|
236
|
+
/**
|
|
237
|
+
* 415 unsupported media type.
|
|
238
|
+
*
|
|
239
|
+
* This code always indicates an issue with the client.
|
|
240
|
+
*/
|
|
241
|
+
PSYNC_S2004 = "PSYNC_S2004",
|
|
222
242
|
/**
|
|
223
243
|
* Generic authentication error.
|
|
224
244
|
*/
|
|
225
245
|
PSYNC_S2101 = "PSYNC_S2101",
|
|
246
|
+
/**
|
|
247
|
+
* Could not verify the auth token signature.
|
|
248
|
+
*
|
|
249
|
+
* Typical causes include:
|
|
250
|
+
* 1. Token kid is not found in the keystore.
|
|
251
|
+
* 2. Signature does not match the kid in the keystore.
|
|
252
|
+
*/
|
|
253
|
+
PSYNC_S2102 = "PSYNC_S2102",
|
|
254
|
+
/**
|
|
255
|
+
* Token has expired. Check the expiry date on the token.
|
|
256
|
+
*/
|
|
257
|
+
PSYNC_S2103 = "PSYNC_S2103",
|
|
258
|
+
/**
|
|
259
|
+
* Token expiration period is too long. Issue shorter-lived tokens.
|
|
260
|
+
*/
|
|
261
|
+
PSYNC_S2104 = "PSYNC_S2104",
|
|
262
|
+
/**
|
|
263
|
+
* Token audience does not match expected values.
|
|
264
|
+
*
|
|
265
|
+
* Check the aud value on the token, compared to the audience values allowed in the service config.
|
|
266
|
+
*/
|
|
267
|
+
PSYNC_S2105 = "PSYNC_S2105",
|
|
268
|
+
/**
|
|
269
|
+
* No token provided. An auth token is required for every request.
|
|
270
|
+
*
|
|
271
|
+
* The Auhtorization header must start with "Token" or "Bearer", followed by the JWT.
|
|
272
|
+
*/
|
|
273
|
+
PSYNC_S2106 = "PSYNC_S2106",
|
|
274
|
+
/**
|
|
275
|
+
* Generic auth configuration error. See the message for details.
|
|
276
|
+
*/
|
|
277
|
+
PSYNC_S2201 = "PSYNC_S2201",
|
|
226
278
|
/**
|
|
227
279
|
* IPv6 support is not enabled for the JWKS URI.
|
|
228
280
|
*
|
|
@@ -235,6 +287,10 @@ export declare enum ErrorCode {
|
|
|
235
287
|
* Make sure to use a publically-accessible JWKS URI.
|
|
236
288
|
*/
|
|
237
289
|
PSYNC_S2203 = "PSYNC_S2203",
|
|
290
|
+
/**
|
|
291
|
+
* JWKS request failed.
|
|
292
|
+
*/
|
|
293
|
+
PSYNC_S2204 = "PSYNC_S2204",
|
|
238
294
|
/**
|
|
239
295
|
* No sync rules available.
|
|
240
296
|
*
|
package/dist/codes.js
CHANGED
|
@@ -212,6 +212,20 @@ export var ErrorCode;
|
|
|
212
212
|
* Replication will be stopped for this Change Stream. Replication will restart with a new Change Stream.
|
|
213
213
|
*/
|
|
214
214
|
ErrorCode["PSYNC_S1344"] = "PSYNC_S1344";
|
|
215
|
+
/**
|
|
216
|
+
* Failed to read MongoDB Change Stream due to a timeout.
|
|
217
|
+
*
|
|
218
|
+
* This may happen if there is a significant delay on the source database in reading the change stream.
|
|
219
|
+
*
|
|
220
|
+
* If this is not resolved after retries, replication may need to be restarted from scratch.
|
|
221
|
+
*/
|
|
222
|
+
ErrorCode["PSYNC_S1345"] = "PSYNC_S1345";
|
|
223
|
+
/**
|
|
224
|
+
* Failed to read MongoDB Change Stream.
|
|
225
|
+
*
|
|
226
|
+
* See the error cause for more details.
|
|
227
|
+
*/
|
|
228
|
+
ErrorCode["PSYNC_S1346"] = "PSYNC_S1346";
|
|
215
229
|
// ## PSYNC_S14xx: MongoDB storage replication issues
|
|
216
230
|
/**
|
|
217
231
|
* Max transaction tries exceeded.
|
|
@@ -234,6 +248,12 @@ export var ErrorCode;
|
|
|
234
248
|
* Wait a while then retry the request.
|
|
235
249
|
*/
|
|
236
250
|
ErrorCode["PSYNC_S2003"] = "PSYNC_S2003";
|
|
251
|
+
/**
|
|
252
|
+
* 415 unsupported media type.
|
|
253
|
+
*
|
|
254
|
+
* This code always indicates an issue with the client.
|
|
255
|
+
*/
|
|
256
|
+
ErrorCode["PSYNC_S2004"] = "PSYNC_S2004";
|
|
237
257
|
// ## PSYNC_S21xx: Auth errors originating on the client.
|
|
238
258
|
//
|
|
239
259
|
// This does not include auth configuration errors on the service.
|
|
@@ -241,7 +261,39 @@ export var ErrorCode;
|
|
|
241
261
|
* Generic authentication error.
|
|
242
262
|
*/
|
|
243
263
|
ErrorCode["PSYNC_S2101"] = "PSYNC_S2101";
|
|
264
|
+
/**
|
|
265
|
+
* Could not verify the auth token signature.
|
|
266
|
+
*
|
|
267
|
+
* Typical causes include:
|
|
268
|
+
* 1. Token kid is not found in the keystore.
|
|
269
|
+
* 2. Signature does not match the kid in the keystore.
|
|
270
|
+
*/
|
|
271
|
+
ErrorCode["PSYNC_S2102"] = "PSYNC_S2102";
|
|
272
|
+
/**
|
|
273
|
+
* Token has expired. Check the expiry date on the token.
|
|
274
|
+
*/
|
|
275
|
+
ErrorCode["PSYNC_S2103"] = "PSYNC_S2103";
|
|
276
|
+
/**
|
|
277
|
+
* Token expiration period is too long. Issue shorter-lived tokens.
|
|
278
|
+
*/
|
|
279
|
+
ErrorCode["PSYNC_S2104"] = "PSYNC_S2104";
|
|
280
|
+
/**
|
|
281
|
+
* Token audience does not match expected values.
|
|
282
|
+
*
|
|
283
|
+
* Check the aud value on the token, compared to the audience values allowed in the service config.
|
|
284
|
+
*/
|
|
285
|
+
ErrorCode["PSYNC_S2105"] = "PSYNC_S2105";
|
|
286
|
+
/**
|
|
287
|
+
* No token provided. An auth token is required for every request.
|
|
288
|
+
*
|
|
289
|
+
* The Auhtorization header must start with "Token" or "Bearer", followed by the JWT.
|
|
290
|
+
*/
|
|
291
|
+
ErrorCode["PSYNC_S2106"] = "PSYNC_S2106";
|
|
244
292
|
// ## PSYNC_S22xx: Auth integration errors
|
|
293
|
+
/**
|
|
294
|
+
* Generic auth configuration error. See the message for details.
|
|
295
|
+
*/
|
|
296
|
+
ErrorCode["PSYNC_S2201"] = "PSYNC_S2201";
|
|
245
297
|
/**
|
|
246
298
|
* IPv6 support is not enabled for the JWKS URI.
|
|
247
299
|
*
|
|
@@ -254,6 +306,10 @@ export var ErrorCode;
|
|
|
254
306
|
* Make sure to use a publically-accessible JWKS URI.
|
|
255
307
|
*/
|
|
256
308
|
ErrorCode["PSYNC_S2203"] = "PSYNC_S2203";
|
|
309
|
+
/**
|
|
310
|
+
* JWKS request failed.
|
|
311
|
+
*/
|
|
312
|
+
ErrorCode["PSYNC_S2204"] = "PSYNC_S2204";
|
|
257
313
|
// ## PSYNC_S23xx: Sync API errors
|
|
258
314
|
/**
|
|
259
315
|
* No sync rules available.
|
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,SA2bX;AA3bD,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,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,2CAA2C;IAE3C,6CAA6C;IAE7C;;OAEG;IACH,wCAA2B,CAAA;IAE3B;;OAEG;IACH,wCAA2B,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AE/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,EA3bW,SAAS,KAAT,SAAS,QA2bpB"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -65,10 +65,27 @@ export declare class ReplicationAbortedError extends ServiceError {
|
|
|
65
65
|
static readonly CODE = ErrorCode.PSYNC_S1103;
|
|
66
66
|
constructor(description?: string);
|
|
67
67
|
}
|
|
68
|
-
export declare class
|
|
69
|
-
static readonly CODE = ErrorCode.
|
|
68
|
+
export declare class UnsupportedMediaType extends ServiceError {
|
|
69
|
+
static readonly CODE = ErrorCode.PSYNC_S2004;
|
|
70
70
|
constructor(errors: any);
|
|
71
71
|
}
|
|
72
|
+
export declare class AuthorizationError extends ServiceError {
|
|
73
|
+
/**
|
|
74
|
+
* String describing the token. Does not contain the full token, but may help with debugging.
|
|
75
|
+
* Safe for logs.
|
|
76
|
+
*/
|
|
77
|
+
tokenDetails: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* String describing related configuration. Should never be returned to the client.
|
|
80
|
+
* Safe for logs.
|
|
81
|
+
*/
|
|
82
|
+
configurationDetails: string | undefined;
|
|
83
|
+
constructor(code: ErrorCode, description: string, options?: {
|
|
84
|
+
tokenDetails?: string;
|
|
85
|
+
configurationDetails?: string;
|
|
86
|
+
cause?: any;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
72
89
|
export declare class InternalServerError extends ServiceError {
|
|
73
90
|
static readonly CODE = ErrorCode.PSYNC_S2001;
|
|
74
91
|
constructor(err: Error);
|
package/dist/errors.js
CHANGED
|
@@ -124,17 +124,39 @@ export class ReplicationAbortedError extends ServiceError {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
export class
|
|
128
|
-
static CODE = ErrorCode.
|
|
127
|
+
export class UnsupportedMediaType extends ServiceError {
|
|
128
|
+
static CODE = ErrorCode.PSYNC_S2004;
|
|
129
129
|
constructor(errors) {
|
|
130
130
|
super({
|
|
131
|
-
code:
|
|
132
|
-
status:
|
|
133
|
-
description: '
|
|
131
|
+
code: UnsupportedMediaType.CODE,
|
|
132
|
+
status: 415,
|
|
133
|
+
description: 'Unsupported Media Type',
|
|
134
134
|
details: errors
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
export class AuthorizationError extends ServiceError {
|
|
139
|
+
/**
|
|
140
|
+
* String describing the token. Does not contain the full token, but may help with debugging.
|
|
141
|
+
* Safe for logs.
|
|
142
|
+
*/
|
|
143
|
+
tokenDetails;
|
|
144
|
+
/**
|
|
145
|
+
* String describing related configuration. Should never be returned to the client.
|
|
146
|
+
* Safe for logs.
|
|
147
|
+
*/
|
|
148
|
+
configurationDetails;
|
|
149
|
+
constructor(code, description, options) {
|
|
150
|
+
super({
|
|
151
|
+
code,
|
|
152
|
+
status: 401,
|
|
153
|
+
description
|
|
154
|
+
});
|
|
155
|
+
this.cause = options?.cause;
|
|
156
|
+
this.tokenDetails = options?.tokenDetails;
|
|
157
|
+
this.configurationDetails = options?.configurationDetails;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
138
160
|
export class InternalServerError extends ServiceError {
|
|
139
161
|
static CODE = ErrorCode.PSYNC_S2001;
|
|
140
162
|
constructor(err) {
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,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