title: Nest.js RangeError: Maximum call stack size exceeded
body: <p>I want to make a request to to an external api using axios and nestjs.
  <br><br />
  I took this answer <a href="https://stackoverflow.com/a/52864503/12753324">Nestjs using axios</a> and instead of execute the request in the controller I created a service</p>
  <pre><code>// controller
  import { Controller, Get } from '@nestjs/common';
  import { CollectService } from './collect.service';
  
  
  @Controller('collect')
  export class CollectController {
      constructor(private collectService: CollectService) {}
  
  
      @Get()
      getResponse(){
           this.getResponse();
  
      }
     
  
  }
  
  // ----------service ------------------------
  
  import { Injectable, HttpService } from '@nestjs/common';
  
  @Injectable()
  export class CollectService {
  
      constructor(private httpService: HttpService) {}
  
  
      async getResponse() {
         
          const response = await this.httpService.get('https://reqres.in/api/users/2').toPromise();
          return response.data;
  
      
       
          }
        
  }
  
  
  </code></pre>
  <p>which gave me a stackoverflow</p>
  <pre><code>
  [Nest] 23928   - 02/28/2021, 12:16:18 PM   [ExceptionsHandler] Maximum call stack size exceeded +74479ms
  RangeError: Maximum call stack size exceeded
  
  </code></pre>
  <p>what caused this behavior ?</p>