I'm logged in to both QC and Alpaca in my browser. When I try to live deploy via “lean live deploy [project] --brokerage Alpaca” I'm currently getting a 404 error page from the QuantConnect website. This has worked without issue until very recently, only seeing the error today.
Mia Alissi
Here’s a practical, step-by-step troubleshooting guide for Andrew:
Step-by-Step Guide: Fixing 404 Errors When Deploying Live With Lean CLI (Alpaca Brokerage)
1. Check Your Lean CLI Version
Old CLI versions may have API incompatibilities that lead to 404 errors.
2. Re-authenticate in Lean CLI Your browser login is separate from the CLI. Re-login specifically in the CLI:
This ensures your CLI API token is valid and up to date.
3. Confirm You’re in the Correct Organization Workspace List and choose your workspace:
A 404 may occur if the project or deployment is not in the active workspace.
4. Double-check Your Project Name and Existence See your projects and confirm the exact name:
Typos, deleted, or renamed projects will cause 404s.
5. Carefully Review Brokerage & Data Provider Choices Make sure you’re calling Alpaca and the correct data provider:
If deployed interactively, make sure all prompts match your intended brokerage and settings!
6. Retry With Debug Logging Get more info:
Take note of any deployment IDs—the browser URL relies on these.
7. Review QuantConnect Status and Forum
8. If Still Stuck: Gather Info for Support
lean --versionand your deployment command--log-level trace)Contact support@quantconnect.com or post in the forum for direct help.
Summary Checklist
lean cloud login)Following the above steps should resolve most recent 404 live deployment issues. Let me know which step, if any, produces a different or helpful result!
Sources: QuantConnect Paper Trading - QuantConnect.com, Getting Started - QuantConnect.com
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.
Andrew
I am currently running the latest version of Lean CLI. I tried all the commands in each step and most of them did not work (commands or parameters unavailable). I'm not sure most of them would apply anyway, since they are Lean cloud commands and I'm trying to run from local Lean CLI.
The issue appears to be on the QuantConnect side. The URL that returns a 404 error is: https://www.quantconnect.com/auth-alpaca
Andrew
This appears to be resolved now. Thank you to whoever got things working again!
Andrew
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!