title: NodeMCU custom built firmware http.get fails with a code of -1
body: <p>I recently got a NodeMCU toolchain working with  <a href="https://github.com/slaff/esp8266.dev.box" rel="nofollow">https://github.com/slaff/esp8266.dev.box</a>, but when I try to do a http.get, it immediately fails with the code -1, even though with the firmware from <a href="https://nodemcu-build.com/" rel="nofollow">https://nodemcu-build.com/</a> it works fine. The heap space is approximately the same for both firmwares, and with both the custom built firmware and the cloud built one it works with a different URL.</p>
  
  <p>The URL it is not working with is private, but overall it links to a google sheet and gets a CSV file. It still fails even when the CSV file is a single '0', and succeeds with a URL that links to a .txt file with around 20 characters.</p>
  
  <p>Example url it doesn't work on:
  <a href="https://docs.google.com/spreadsheets/d/%3Cprivate%3E/pub?output=csv&amp;gid=0&amp;single=true&amp;gridlines=false&amp;chrome=false" rel="nofollow">https://docs.google.com/spreadsheets/d//pub?output=csv&amp;gid=0&amp;single=true&amp;gridlines=false&amp;chrome=false</a></p>
  
  <p>My user_modules.h from when I build:
  <a href="http://pastebin.com/1LbxmS2B" rel="nofollow">http://pastebin.com/1LbxmS2B</a></p>
  
  <p>My user_config.h:
  <a href="http://pastebin.com/qBixhqyC" rel="nofollow">http://pastebin.com/qBixhqyC</a></p>
  
  <p>My Lua code (runs after I've successfully connected to wifi):</p>
  
  <pre><code>http.get(url, nil, function(code, data)
    print(code, data)
  end)
  </code></pre>
  
  <p>Is there something that I am doing wrong when I build the firmware? Any help is greatly appreciated.</p>