title: Node-fetch problems with POST requests
body: <p>In postman, I can successfully make this request:</p>
  
  <p><a href="https://i.stack.imgur.com/JsEFd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JsEFd.png" alt="enter image description here"></a></p>
  
  <p>And get this response:</p>
  
  <p><a href="https://i.stack.imgur.com/qEq13.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qEq13.png" alt="enter image description here"></a></p>
  
  <p>Now I want to do the same request in my server.js file in node.js:</p>
  
  <pre><code>const fetch = require('node-fetch')
  const SEN_URL =  "http://www.sentiment140.com/api/bulkClassifyJson" // URL of sentiment analysis
  app.get('/api/sentimenttest', async (req, res) =&gt; {
    try{
      var sentiments = await fetch(SEN_URL, {method: "POST", body: {"data": [{"text": "I love you"}, {"text": "I hate you"}]}})
      console.log(sentiments)
      res.send(sentiments)
    }catch(error){
      console.log(error)
    }
  })
  </code></pre>
  
  <p>This doesn't work. Here's what shows up in the browser when I go to localhost:5000/api/sentimenttest:</p>
  
  <pre><code>{"size":0,"timeout":0}
  </code></pre>
  
  <p>and here's the console output:</p>
  
  <pre><code> Response {
     size: 0,
     timeout: 0,
     [Symbol(Body internals)]: 
      { body: 
         PassThrough {
           _readableState: [ReadableState],
           readable: true,
           _events: [Object],
           _eventsCount: 2,
           _maxListeners: undefined,
           _writableState: [WritableState],
           writable: false,
           allowHalfOpen: true,
           _transformState: [Object] },
        disturbed: false,
        error: null },
     [Symbol(Response internals)]: 
      { url: 'http://www.sentiment140.com/api/bulkClassifyJson',
        status: 200,
        statusText: 'OK',
        headers: Headers { [Symbol(map)]: [Object] } } }
  </code></pre>
  
  <p>Since the request works just fine in postman, I think that the problem is with node-fetch, or the way that I use it, specifically how the <code>body</code> parameter is provided in the <code>fetch()</code> call. It seems like the API call does not contain what I want it to, since in the browser it says <code>"size":0</code>.</p>
  
  <p>What should I do to fix this?</p>