title: Empty body in API Gateway response
body: <p>I have been trying to get the response from API gateway, but after countless tries and going through several online answers, I still wasn't able to solve my issue.</p>
  
  <p>When I test my POST method for the API, it gives me proper response on lambda test and API gateway method test, but when I try it from my react app, it doesn't return the same output.</p>
  
  <p>My lambda snippet:</p>
  
  <pre><code>const response = {
          statusCode: 200,
          body: JSON.stringify({payload: {"key": "value"}})
      };
  
      return response;
  </code></pre>
  
  <p>But the response I am getting using fetch API on my react app:</p>
  
  <p><a href="https://i.stack.imgur.com/qZT8F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qZT8F.png" alt="enter image description here"></a></p>
  
  <p>I am new to AWS and would appreciate if someone point me in the right direction. </p>