title: POST Request Using fetch() Returns 204 No Content
body: <p>I'm making a POST request to a node.js server and I'm having trouble getting it to work. Here's my request:</p>
  
  <pre><code>const headers = {
    'Accept': 'application/json',
    'Content-Type': 'application/json',
    'Authorization': 'this-can-be-anything',
  };
  
  export const postVote = (id, vote) =&gt;
    fetch(`${uri}/posts/${id}`, {
      method: 'POST',
      headers,
      body: JSON.stringify({options: vote}),
    }).then(response =&gt; response.json())
      .then(data =&gt; data)
      .catch(err =&gt; console.log(err));
  </code></pre>
  
  <p>The function accepts an 'id' and a 'vote', both strings. The id is being used as part of the URI in the request, and the vote is being supplied as options so the API knows what to do with it. Both of the arguments are being passed correctly:</p>
  
  <pre><code>id = '8xf0y6ziyjabvozdd253nd'
  vote = 'upVote'
  </code></pre>
  
  <p>Here's a link to the GitHub repository for the server/API:</p>
  
  <p><a href="https://github.com/udacity/reactnd-project-readable-starter/tree/master/api-server" rel="nofollow noreferrer">Udacity Readable API</a></p>
  
  <p>and a screenshot of the network when firing the request:</p>
  
  <p><a href="https://i.stack.imgur.com/luNn3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/luNn3.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/775Oe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/775Oe.png" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE</strong>: Added the second screenshot which shows status 200. Though it shows this and appears to have been successful, it still doesn't post to the server and the information stays the same.</p>