Back

WebClient.DownloadString stop working

Did I miss somewhere that something changed with calling webClient.DownloadString()?  A project of mine from about 8 -9 months ago is now failing when I try to download a file from the web (specifically DropBox in this case).  The specific error is:

During the algorithm initialization, the following exception has occurred: Error: ProtocolErrorI'm not sure I can attach a project without a besttest (and I don't have a backtest because it fails to run), but here's the small code snippet that's failing:

            string fileContents;
            using (var webClient = new System.Net.WebClient())
            {
                fileContents = webClient.DownloadString("https://www.dropbox.com/s/s01lc2g8v7nv99e/TEST.txt?dl=1");
            }

 
Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hey Ted! Requests must now use Download() to pass through our proxy server. Others are blocked by the firewall to prevent data export. 

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed