NestJS returning the result of an HTTP request : <p>In my NestJS application I want to return the result of an http call.</p>

<p>Following the example of the <a href="https://docs.nestjs.com/techniques/http-module" rel="noreferrer">NestJS HTTP module</a>, what I'm doing is simply:</p>

<pre><code>import { Controller, HttpService, Post } from '@nestjs/common';
import { AxiosResponse } from '@nestjs/common/http/interfaces/axios.interfaces';
import { Observable } from 'rxjs/internal/Observable';

@Controller('authenticate')
export class AuthController {

  constructor(private readonly httpService: HttpService) {}

  @Post()
  authenticate(): Observable&lt;AxiosResponse&lt;any&gt;&gt; {
    return this.httpService.post(...);
  }
}
</code></pre>

<p>However from the client I'm getting 500 and the server console is saying:</p>

<blockquote>
  <p>TypeError: Converting circular structure to JSON
      at JSON.stringify ()
      at stringify (/Users/francesco.borzi/sources/business-controller-rewrite/node_modules/express/lib/response.js:1119:12)
      at ServerResponse.json (/Users/francesco.borzi/sources/business-controller-rewrite/node_modules/express/lib/response.js:260:14)
      at ExpressAdapter.reply (/Users/francesco.borzi/sources/business-controller-rewrite/node_modules/@nestjs/core/adapters/express-adapter.js:41:52)
      at RouterResponseController.apply (/Users/francesco.borzi/sources/business-controller-rewrite/node_modules/@nestjs/core/router/router-response-controller.js:11:36)
      at 
      at process._tickCallback (internal/process/next_tick.js:182:7)</p>
</blockquote>
