title: Vercel serverless function not running axios post request
body: <p>I am using Vercel serverless function to run a post request to webhook.
  This works correctly on localhost but not working after deploying to Vercel serverless function.</p>
  <pre><code>async function formSubmission(req, res) {
    res.statusCode = 200;
    console.log('form-submission-init');
    axios({
      method: 'POST',
      url: 'https://flow.zoho.in/*',
      data: req.body,
    })
      .then((response) =&gt; {
        console.log('success');
      })
      .catch((error) =&gt; {
        console.log('fail', error);
      });
    res.json({ data: 'done' });
  }
  </code></pre>
  <p>Vercel logs <code>form-submission-init</code>
  Vercel logs do not print either <code>fail</code> or <code>success</code></p>
  <p>I have gone through Vercel's documentation on why it may not work <a href="https://vercel.com/support/articles/why-does-my-serverless-function-work-locally-but-not-when-deployed" rel="nofollow noreferrer">link</a> but unsure.
  Any help appreciated.</p>