title: axios.post() error about circular structure
body: <p>Please guide me in case I'm not in proper use of axios.  This simple piece of code can directly run:</p>
  <pre><code>const axios = require('axios')
  
  axios.post('https://exp.host/--/api/v2/push/send', {&quot;to&quot;:[&quot;ExponentPushToken[xxxxxxx]&quot;],&quot;title&quot;:&quot;test title&quot;,&quot;body&quot;:&quot;test body.&quot;})
    .then(responseExpo =&gt; {
       console.log(&quot;expo replied normally: &quot; + JSON.stringify(responseExpo));
    })
    .catch(error =&gt; {
      console.log(&quot;expo replied with error: &quot; + JSON.stringify(error,null,4));
    });
  </code></pre>
  <p>The result is:</p>
  <pre><code>Promise { &lt;pending&gt; }
  expo replied with error: {}
  </code></pre>
  <p>&quot;axios&quot;: &quot;^0.19.2&quot;</p>
  <p>I tried to post with api tools and see a response with normal 200 status code:</p>
  <pre><code>{
    &quot;data&quot;:[
    {
      &quot;status&quot;: &quot;error&quot;,
      &quot;message&quot;: &quot;\&quot;ExponentPushToken[xxxxxxx]\&quot; is not a registered push notification recipient&quot;,
      &quot;details&quot;:{
        &quot;error&quot;: &quot;DeviceNotRegistered&quot;
      }
    }
    ]
  }
  </code></pre>
  <p>(you may ignore the &quot;error&quot;: &quot;DeviceNotRegistered&quot; inside this json cos it's expected because I have put an invalid xxxxx input value when calling the api.  Even putting a valid input value the result is still returning to the catch block with empty error)</p>
  <p>I'm expecting it to return to the then block cos the server actually response with 200 with well formatted json result.<br />
  Have I done something wrong so that the call returns to the catch block?  Cos the error is empty I have no idea what went wrong.</p>
  <p>===============================
  after jfriend's reminder I changed to directly disply the error.</p>
  <p>console.log(&quot;expo replied with error: &quot; + error);</p>
  <p>it is show like this now:</p>
  <pre><code>Promise { &lt;pending&gt; }
  expo replied with error: TypeError: Converting circular structure to JSON
      --&gt; starting at object with constructor 'ClientRequest'
      |     property 'socket' -&gt; object with constructor 'TLSSocket'
      --- property '_httpMessage' closes the circle
  </code></pre>
  <p>Anyone can let me know what exactly it means and guide me how to correct my usage?</p>