title: Resource submitted could not be validated: Mailchimp
body: <p>as this is my first question on StackOverflow, I do hope I provide you with enough details to the problem in order to fix it. If you need any further info, don't hesitate to ask. </p>
  
  <p>In short, I'm trying to create a simple signup page for a newsletter that adds subscribers to Mailchimp.</p>
  
  <p>In the terminal/command-line I get this message:</p>
  
  <p>{
    type: '<a href="http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/" rel="nofollow noreferrer">http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/</a>',
    title: 'Invalid Resource',
    status: 400,
    detail: "The resource submitted could not be validated. For field-specific details, see the 'errors' array.",
    instance: '4d92a5b7-20fb-4f1c-be19-fbcd6548e745',
    errors: [
      {
        field: '',
        message: 'Required fields were not provided: email_address'
      }
    ]
  }</p>
  
  <p>My HTML-body looks like this:</p>
  
  <p>`</p>
  
  <pre><code>&lt;img class="mb-4" src="images/logo.png" alt="" width="172" height="172"&gt;
  &lt;h1 class="h3 mb-3 font-weight-normal"&gt;Signup to our Newsletter&lt;/h1&gt;
  
  &lt;input type="text" name="fName" class="form-control top" placeholder="First Name"  required autofocus&gt;
  &lt;input type="text" name="lName" class="form-control middle" placeholder="Last Name"  required&gt;
  &lt;input type="email" name="email" class="form-control bottom" placeholder="Email" required&gt;
  
  
  
  &lt;button class="btn btn-lg btn-primary btn-block btn-sign-up" type="submit"&gt;Sign me up!&lt;/button&gt;
  
  &lt;p class="mt-5 mb-3 text-muted"&gt;&amp;copy; PB Plus 2017-2020&lt;/p&gt;
  </code></pre>
  
  <p>`</p>
  
  <p>This is the 'POST' part of my Javascript:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>app.post("/", function(req, res) {
  
    const firstName = req.body.fName;
    const lastName = req.body.lName;
    const mail = req.body.email;
  
    const data = {
      members: [{
        email_adress: mail,
        status: "subscribed",
        merge_fields: {
          FNAME: firstName,
          LNAME: lastName
        }
      }]
    };
  
    var jsonData = JSON.stringify(data);
  
    const url = "https://us4.api.mailchimp.com/3.0/lists/fae76eccaf";
    const options = {
      method: "POST",
      auth: "xavier1:6cbb8e0a03109b3b2ef74adc0127f986-us4"
    }
  
    const request = https.request(url, options, function(response) {
  
      if (response.statusCode === 200) {
        res.sendFile(__dirname + "/succes.html");
      } else {
        res.sendFile(__dirname + "/failure.html");
      }
  
      response.on("data", function(data) {
        console.log(JSON.parse(data));
      })
    })
  
    request.write(jsonData);
    request.end();
  
  })</code></pre>
  </div>
  </div>
  </p>
  
  <p>If anyone knows what I did wrong, please let me know! Thanks in advance. </p>