title: Unhandled Rejection (SyntaxError): Unexpected end of input
body: <p>I am making a component that is dedicated to be take email subscriber... like this</p>
  
  <pre><code>import React from "react";
  
  class SubscribeOffer extends React.Component {
  constructor () {
      super();
      this.state={
          email: ""
      }
  }
  
  fillEmailToSubscribe = (event) =&gt; {
      this.setState({email: event.target.value});
  }
  
  submitEmailToSubscribe = () =&gt; {
      if (this.state.email &gt; 3) {
          fetch('https://(myuser).list-manage.com/subscribe/post?u=(somenumber)&amp;amp;id=(myid)'
          ,{
              mode: 'no-cors',
              method:'POST',
              headers: {'Content-Type': 'application/json'},
              body: JSON.stringify({
                  email:this.state.email
              })
          })
          .then(response =&gt; response.json())
          .then(() =&gt; {
              alert('Thank you for subscribing!');
          })
      }
  
  }
  
  render () {
      return (
          &lt;div&gt;
              &lt;h1&gt;Get updated upcoming events in your inbox everyday!&lt;/h1&gt;
              &lt;p&gt;Would you like us to give you updates with future updates upcoming events?&lt;/p&gt;
              &lt;input 
                  type='email'
                  name='email-address'
                  id='email-address'
                  placeholder="your email" 
                  onChange={this.fillEmailToSubscribe}
                  required
              /&gt;
              &lt;button onClick={this.submitEmailToSubscribe}&gt;Subscribe&lt;/button&gt;
          &lt;/div&gt;
      )
  }
  }
  
  export default SubscribeOffer;
  </code></pre>
  
  <p>However, I only get a response like this</p>
  
  <pre><code>Unhandled Rejection (SyntaxError): Unexpected end of input
  </code></pre>
  
  <p>when i check how the API respond, it gives me the preview like this
  <a href="https://i.stack.imgur.com/xVpyH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xVpyH.jpg" alt="enter image description here"></a></p>
  
  <p>Do you have any idea how can i solve this?
  I was making this to be as simple as people input their email and just click the button and that's it.</p>
  
  <p>Very appreciate for any of your help!</p>