-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I'm trying to get a credential file saved but having trouble.
As it was suggested as the easiest method, I'm using the python/tools credential_builder.py.
I ran the dependencies
python setup.py install (from project's python directory)
and
pip install cefpython3
Then I tried the credentials_builder.py and after it brings up the dialog and I enter creds, do 2FA, allow all the things, click Allow and then I get a blank page in that window and the credentials file is never saved as my ~/tda-creds is still a zero byte file. I'm getting the following (had to kill it to get it to stop); I tried this three times, same result (G...I is my edited Consumer Key):
`➜ tools git:(master) ✗ python credential_builder.py --redirect-uri http://127.0.0.1 [email protected] ~/tda-creds re******
- Successfully loaded: libTDAmeritradeAPI.so
- Last Build: Jan 15 2022 - 00:12:35
- Extract Args...
- Confirm password: re******
- File already exists, overwrite? (yes/no): yes
Library Path: N/A
Redirect URI: http://127.0.0.1
Client ID: [email protected]
Credential Path: /Users/myuser/tda-creds
Credential Password: re******
DevTools listening on ws://127.0.0.1:58598/devtools/browser/e8fe8456-08d9-4606-905f-b5c94c0af902
[0115/041242.037414:ERROR:BudgetService.cpp(160)] Unable to connect to the Mojo BudgetService.
[0115/041307.352655:ERROR:BudgetService.cpp(160)] Unable to connect to the Mojo BudgetService.
[0115/041309.341600:ERROR:BudgetService.cpp(160)] Unable to connect to the Mojo BudgetService.
[0115/041323.484688:ERROR:BudgetService.cpp(160)] Unable to connect to the Mojo BudgetService.
[0115/041341.099560:ERROR:BudgetService.cpp(160)] Unable to connect to the Mojo BudgetService.
^C`
My developer app at TDAmeritrade uses http://127.0.0.1.
I'm using Python 3.7.2. And I also built the library on MacOS (works great, btw) and installed it in /user/local/lib as both .so and .dylib (as the Java test/java/Test.java ends up looking for that extension on a Mac/Darwin; python finds the .so as seen above), not sure if that's an issue. Any idea what the issue is? Is this Mojo BudgetService an indicator of a problem?
I also tried opening tools/get-access-code.html in a browser but apparently I tried too many times with credential_builder.py as TDA says something like someone may be trying to log in to your account unauthorized; give us a call if you have questions.