Re-authenticating my Charles Schwab brokerage for a live deployment fails every time and I'd appreciate guidance.
Setup: cloud live deploy, project 36170999, node L1-1, region America/NY7.
Steps: Deploy Live → Charles Schwab → Authenticate. The Schwab login opens, I log in and approve account access, and Schwab redirects back with a valid code. QuantConnect's callback then returns an error and Authorization stays on “Waiting”. The callback URL is:
/api/v2/live/auth0/callback/brokerage/charlesschwab?brokerage=charlesschwab&code=…&session=…&state=…
and it returns:
{"errors":["For your security, log in it's required before starting a authorization"],"success":false}
This is 100% reproducible. I've ruled out: popups blocked, third-party cookies blocked, timeout (a fast clean retry fails identically), and a stale QC login (logged out and back in fresh - same result). Schwab issues a valid code; the callback rejects it.
Meanwhile the live algorithm errors at Initialize with: CharlesSchwabApiClient.SendRequestAsync: Authentication failed. Details: Error refreshing access token.
This may relate to the new Schwab authentication-refresh rollout. How do I complete the authorization? Thanks.
Alexandre Catarino
Hi Corbin Holloway,
The brokerage authorization step is working again, so nothing needs to change in your browser or account settings. Please run the authorization again: Deploy Live, select Charles Schwab, enter your Schwab user name, click Authenticate and approve the account access at Schwab. The account drop-down appearing in the wizard confirms the authorization was stored. The steps are in the Charles Schwab authentication docs.
The "Error refreshing access token" at Initialize comes from the same missing authorization: the deployment had no valid Schwab token to start with. Once the authorization completes, deploy the algorithm again and it will start with the new token.
If the callback still returns the same error after a fresh attempt, please post the time you tried (with time zone) in this thread.
Corbin Holloway
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.
This discussion is closed