Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integration/microservices/src/disconnected.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export class DisconnectedClientController {
code === 'CONN_ERR' ||
code === 'ENOTFOUND' ||
code === 'CONNECTION_REFUSED' ||
error.message.includes('Connection is closed.')
error.message.includes('Connection is closed.') ||
error.message.includes('connection refused')
? new RequestTimeoutException('ECONNREFUSED')
: new InternalServerErrorException(),
);
Expand Down
2 changes: 1 addition & 1 deletion integration/microservices/src/nats/nats.controller.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as nats from '@nats-io/nats-core';
import { Body, Controller, Get, HttpCode, Post, Query } from '@nestjs/common';
import {
ClientProxy,
Expand All @@ -11,7 +12,6 @@ import {
RpcException,
Transport,
} from '@nestjs/microservices';
import * as nats from 'nats';
import { from, lastValueFrom, Observable, of, throwError } from 'rxjs';
import { catchError, scan } from 'rxjs/operators';
import { NatsService } from './nats.service';
Expand Down
Loading
Loading