title: Unable to make successful requests using nest.js HttpService
body: <p>I'm trying to make a request using nest.js HttpService as specified in their docs but I keep getting an error that I can't make sense of.</p>
  <p>I have imported the HttpModule</p>
  <pre><code>import { Module } from '@nestjs/common';
  import { AppController } from './app.controller';
  import { AppService } from './app.service';
  
  @Module({
    imports: [HttpModule],
    controllers: [AppController],
    providers: [AppService],
  })
  export class AppModule {}
  </code></pre>
  <p>and am trying to use the HttpService like this:</p>
  <pre><code>import { HttpService } from '@nestjs/axios';
  import { Controller, Get } from '@nestjs/common';
  import { lastValueFrom } from 'rxjs';
  import { AppService } from './app.service';
  
  @Controller()
  export class AppController {
    constructor(
      private readonly appService: AppService,
      private httpService: HttpService
    ) {}
  
    @Get()
    async getHello(): Promise&lt;string&gt; {
      const req = this.httpService.get('https://icanhazdadjoke.com/');
      console.log(req)
      const res = await lastValueFrom(req);
      const data = res.data
      return data
    }
  }
  </code></pre>
  <p>but when I query the get endpoint using curl i get an error response</p>
  <pre><code>http-test git:(master) ✗ curl localhost:3001
  {&quot;statusCode&quot;:500,&quot;message&quot;:&quot;Internal server error&quot;}% 
  </code></pre>
  <p>and my console shows the following</p>
  <pre><code>[11:02:02 a.m.] File change detected. Starting incremental compilation...
  
  [11:02:02 a.m.] Found 0 errors. Watching for file changes.
  
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [NestFactory] Starting Nest application...
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [InstanceLoader] HttpModule dependencies initialized +36ms
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [InstanceLoader] AppModule dependencies initialized +1ms
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [RoutesResolver] AppController {/}: +5ms
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [RouterExplorer] Mapped {/, GET} route +2ms
  [Nest] 73798  - 2022-03-22, 11:02:03 a.m.     LOG [NestApplication] Nest application successfully started +2ms
  Observable { _subscribe: [Function (anonymous)] }
  [Nest] 73798  - 2022-03-22, 11:02:06 a.m.   ERROR [ExceptionsHandler] Request failed with status code 503
  Error: Request failed with status code 503
      at createError (/Users/sv/projects/http-test/node_modules/@nestjs/axios/node_modules/axios/lib/core/createError.js:16:15)
      at settle (/Users/sv/projects/http-test/node_modules/@nestjs/axios/node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (/Users/sv/projects/http-test/node_modules/@nestjs/axios/node_modules/axios/lib/adapters/http.js:322:11)
      at IncomingMessage.emit (events.js:412:35)
      at endReadableNT (internal/streams/readable.js:1317:12)
      at processTicksAndRejections (internal/process/task_queues.js:82:21)
  </code></pre>