title: I'm getting Unhandled Exception: FormatException: Unexpected end of input (at character 1) and don't know why?
body: <p>I am trying send an email to my forgotPassword but it always returns me an error in console, I don't know what I'm doing wrong.</p>
  <pre><code>[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FormatException: Unexpected end of input (at character 1)
  </code></pre>
  <p>Here's my code</p>
  <pre class="lang-dart prettyprint-override"><code> final String _url = 'apiurl.com';
   Future&lt;String?&gt; forgotPassword(String email) async {
      final Map&lt;String, dynamic&gt; authData = {
        'email': email,
      };
      
      final url = Uri.http(_url, '/api/Auth/ForgotPassword', authData);
  
      final resp = await http.post(
        url,
        body: jsonEncode(authData),
      );
      print(url);
      print(resp.body);
  </code></pre>
  <p>I tried print my url and resp.body and this is what ir returned me.</p>
  <p>URL-
  <a href="http://apiurl.com/api/Auth/ForgotPassword?email=rudy%40mail.com" rel="nofollow noreferrer">http://apiurl.com/api/Auth/ForgotPassword?email=rudy%40mail.com</a></p>
  <p>resp.body- Nothing/Blank</p>