title: Issue: [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Object
body: <p>How can I fix the below issue? I am unable to submit the form as apparently the listener should be a function. I am using Node Version 14.1.0.</p>
  
  <p>Error: </p>
  
  <pre><code> TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Object
  </code></pre>
  
  <p>Relevant Code:</p>
  
  <pre><code>app.post("/about", function(req, res){
    const email = req.body.email;
  
    const data = {
      members: [
        {
          email_address: email,
          status: "subscribed"
        }
      ]
    };
  
    const jsonData = JSON.stringify(data);
  
    const url = process.env.CUST_KEY;
  
    const options = {
      method: "POST",
      auth: process.env.API_KEY
    }
  
    const request = https.request(url, options, function(response) {
  
      if (response.statusCode === 200) {
        res.render("success");
      } else {
        res.render("failure");
      }
  
      response.on("data", function(data){
      })
    })
  
    request.write(jsonData);
    request.end();
  });
  </code></pre>