title: Getting null in response with get API
body: <p>Hello I have this package <a href="https://pub.dev/packages/http#-readme-tab-" rel="nofollow noreferrer">http package</a></p>
  <p>Have it, in the file <code>pubspec.yaml</code> on dependencies <code>http: ^0.12.0+2</code>
  . I get the packages.</p>
  <p>Import</p>
  <pre><code>import 'package:http/http.dart' as http;
  </code></pre>
  <p>Code</p>
  <pre><code>http.Response response = await http.get(
      'https://api.openweathermap.org/data/2.5/weather?lat=$latitude&amp;lon=$longitude&amp;appid=$API_KEY'
  );
  </code></pre>
  <p>I debug it and the value of response is always null. So I never know the status code of the response. I also try it with other APIs but I have the same problem. I search the URL on the website and it gives me a JSON, that is what I'm looking for.</p>
  <p>Any suggestion?
  <a href="https://i.stack.imgur.com/M8N8I.png" rel="nofollow noreferrer">Debug image</a></p>
  <p>I also try an example and it fails.</p>
  <pre class="lang-flutter prettyprint-override"><code>import 'dart:convert' as convert;
  import 'package:http/http.dart' as http;
  
  main(List&lt;String&gt; arguments) async {
    var url = &quot;https://www.googleapis.com/books/v1/volumes?q={http}&quot;;
  
    // Await the http get response, then decode the json-formatted responce.
    var response = await http.get(url);
    if (response.statusCode == 200) {
      var jsonResponse = convert.jsonDecode(response.body);
      var itemCount = jsonResponse['totalItems'];
      print(&quot;Number of books about http: $itemCount.&quot;);
    } else {
      print(&quot;Request failed with status: ${response.statusCode}.&quot;);
    }
  }
  </code></pre>