@yolo-croket-dev/core 1.7.23 → 1.7.24

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.
@@ -365,20 +365,33 @@ let RPCInterceptor = class RPCInterceptor {
365
365
  // eslint-disable-next-line consistent-return
366
366
  (0, operators_1.catchError)(async (err) => {
367
367
  // timeout 에러 처리
368
- msaLogger.error('Timeout occurred, requeuing message', { traceId: execInterceptor.traceId }, {
369
- error: {
370
- message: err.message,
371
- stack: err.stack,
372
- name: err.name,
373
- response: err.response,
374
- },
375
- });
376
368
  const isTimeoutError = err instanceof Error && err.name === 'TimeoutError';
377
- if (isTimeoutError && !execInterceptor.isMessageAck) {
378
- channel.nack(message, false, true);
379
- execInterceptor.isMessageAck = true;
380
- message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
381
- msaLogger.debug('TimeoutError occurred, message requeued called', { traceId: execInterceptor.traceId });
369
+ if (isTimeoutError) {
370
+ msaLogger.error('[타임 아웃] 메시지 재전송 처리', { traceId: execInterceptor.traceId }, {
371
+ error: {
372
+ message: err.message,
373
+ stack: err.stack,
374
+ name: err.name,
375
+ response: err.response,
376
+ },
377
+ });
378
+ if (!execInterceptor.isMessageAck) {
379
+ channel.nack(message, false, true);
380
+ execInterceptor.isMessageAck = true;
381
+ message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
382
+ msaLogger.debug('TimeoutError occurred, message requeued called', { traceId: execInterceptor.traceId });
383
+ return new rxjs_1.Observable();
384
+ }
385
+ }
386
+ else {
387
+ msaLogger.error('에러 응답 전송 처리', { traceId: execInterceptor.traceId }, {
388
+ error: {
389
+ message: err.message,
390
+ stack: err.stack,
391
+ name: err.name,
392
+ response: err.response,
393
+ },
394
+ });
382
395
  return new rxjs_1.Observable();
383
396
  }
384
397
  }), (0, operators_1.finalize)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.23",
3
+ "version": "1.7.24",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",