Closed felonfusk closed 4 months ago
I can't help but notice that you're sending two different callback URLs there. The one in login_works
sends https://127.0.0.1
whereas the one in login_error sends https://127.0.0.1:8182
. Are you sure you're not setting the wrong callback URL? I've encountered this same error in the past and was similarly confused.
I can't help but notice that you're sending two different callback URLs there. The one in
login_works
sendshttps://127.0.0.1
whereas the one in login_error sendshttps://127.0.0.1:8182
. Are you sure you're not setting the wrong callback URL? I've encountered this same error in the past and was similarly confused.
I think my https://127.0.0.1:8182
works, as I was able to call client_from_manual_flow
in the issue .
And it wouldn't allow me to use the callback url without specifying the port or it will give me an error.
...schwab.auth.RedirectServerExitedError: Redirect server exited. Are you attempting to use a callback URL without a port number specified?
Are both https://127.0.0.1:8182
and https://127.0.0.1
configured as callback URLs for your application? The situation you describe is exactly what happens if you attempt to pass anything that isn't a configured callback.
You are right. My app settings show the callback url is just https://127.0.0.1
, without the port number.
I just created a 2nd app with https://127.0.0.1:8182
this time, will report back once it's approved.
Working as intended, marking as won't fix.
As an FYI, I haven't had any success getting a second app approved, you may find it goes into the Approved - Pending
state forever. I recommend updating your existing app to either modify the existing callback URL to include a port number, or adding a new callback URL alongside the existing one. If the only thing that's using your callback URL is schwab-py
, I recommend the first option.
Please read the bug submission guidelines before submitting a bug.
Not following guidelines may result in your bug being ignored and/or closed.
Description of Bug Trying to use
client_from_login_flow
to get a new token. But received error at Schwab login.My credential is correct, as I was able to login and create new tokens without using
client_from_login_flow
The same error happens toclient_from_manual_flow
as well.python: 3.11 schwab-py: 1.2.1
Code to Reproduce
Expected Behavior Log into Schwab's account page
Actual Behavior Error at Schwab login screen
Error/Exception Log, If Applicable See here to learn how to turn on debug logging: https://tda-api.readthedocs.io/en/latest/help.html