title: Cannot send POST data to Lambda
body: <p>I am trying to send data to my lambda function however the function is not getting my data, the <code>event</code> variable is empty. I am not getting any errors and when I test the function in my API Gateway it works fine. So I am not sure what is happening. My code for sending data to Lambda is below.</p>
  
  <pre><code>var options = { 
      method: 'POST', 
      url: 'correct api url', 
      contentType: "application/json",
      dataType: "json",
      data: s
  }
  </code></pre>
  
  <p>for <code>data: s</code> within my console looks like this <code>data: '{"article_url":"a url here"}'</code></p>
  
  <p>Any idea what the problem is?</p>