@yolo-croket-dev/core 1.7.25-slowquery.37 → 1.7.25-slowquery.39
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.
|
@@ -299,14 +299,8 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
299
299
|
with: () => {
|
|
300
300
|
msaLogger.error('RPCInterceptor timeout 발생', { traceId: execInterceptor.traceId }, { message: this.DEFAULT_TIMEOUT_MESSAGE });
|
|
301
301
|
abortController.abort();
|
|
302
|
-
return (0, rxjs_1.throwError)(() => new
|
|
302
|
+
return (0, rxjs_1.throwError)(() => new exceptions_1.InternalServerError('TIMEOUT_ERROR', this.DEFAULT_TIMEOUT_MESSAGE));
|
|
303
303
|
},
|
|
304
|
-
}), (0, operators_1.catchError)((error) => {
|
|
305
|
-
// abort된 경우와 일반 에러를 구분
|
|
306
|
-
if (abortController.signal.aborted) {
|
|
307
|
-
return (0, rxjs_1.throwError)(() => new Error(`REQUEST_ABORTED: ${this.DEFAULT_TIMEOUT_MESSAGE}`));
|
|
308
|
-
}
|
|
309
|
-
return (0, rxjs_1.throwError)(() => error);
|
|
310
304
|
}), (0, operators_1.tap)({
|
|
311
305
|
next: async (val) => {
|
|
312
306
|
val.isError = false;
|
|
@@ -357,6 +351,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
357
351
|
}
|
|
358
352
|
}), (0, operators_1.finalize)(() => {
|
|
359
353
|
this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
|
|
354
|
+
abortController.abort();
|
|
360
355
|
})));
|
|
361
356
|
}
|
|
362
357
|
};
|