Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Receiving TypeError after login #6065

Open
TheScriptGuy opened this issue Feb 10, 2024 · 2 comments
Open

[Bug] Receiving TypeError after login #6065

TheScriptGuy opened this issue Feb 10, 2024 · 2 comments
Assignees

Comments

@TheScriptGuy
Copy link

Describe the bug
Receiving Traceback after login window closes.

Traceback (most recent call last):
File "terminal.py", line 44, in
File "terminal.py", line 39, in main
File "openbb_terminal/core/session/session_controller.py", line 192, in main
File "openbb_terminal/core/session/session_controller.py", line 171, in login_and_launch
File "openbb_terminal/core/session/session_controller.py", line 113, in pywry_login
File "openbb_terminal/core/session/session_controller.py", line 167, in login_and_launch
File "openbb_terminal/core/session/session_controller.py", line 147, in launch_terminal
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "openbb_terminal/terminal_controller.py", line 48, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "openbb_terminal/reports/reports_model.py", line 13, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "nbformat/init.py", line 12, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "nbformat/_version.py", line 28, in
TypeError: expected string or bytes-like object
[39613] Failed to execute script 'terminal' due to unhandled exception!

To Reproduce
Run OpenBB Terminal, login window opens, I type in my credentials. Login window closes.

Traceback is thrown:
Traceback (most recent call last):
File "terminal.py", line 44, in
File "terminal.py", line 39, in main
File "openbb_terminal/core/session/session_controller.py", line 192, in main
File "openbb_terminal/core/session/session_controller.py", line 171, in login_and_launch
File "openbb_terminal/core/session/session_controller.py", line 113, in pywry_login
File "openbb_terminal/core/session/session_controller.py", line 167, in login_and_launch
File "openbb_terminal/core/session/session_controller.py", line 147, in launch_terminal
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "openbb_terminal/terminal_controller.py", line 48, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "openbb_terminal/reports/reports_model.py", line 13, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "nbformat/init.py", line 12, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "nbformat/_version.py", line 28, in
TypeError: expected string or bytes-like object
[39613] Failed to execute script 'terminal' due to unhandled exception!

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac Sonoma 14.1.1 (M1)
  • Python 3.11.7
  • OpenBB Terminal 3.2.4

Additional context
I'm performing SSL decryption upstream (corporate network).
I've appended my corporate Root CA certificates into /Applications/OpenBB\ Terminal/.OpenBB/certifi/cacert.pem

@TheScriptGuy
Copy link
Author

Is there a list of hostnames that should not be decrypted due to certificate pinning/client authentication when using the OpenBB Terminal?

@deeleeramone
Copy link
Contributor

Is there a list of hostnames that should not be decrypted due to certificate pinning/client authentication when using the OpenBB Terminal?

Is there a list of hostnames that should not be decrypted due to certificate pinning/client authentication when using the OpenBB Terminal?

In short, no, there is not any such list. Window creation is handled by an application, /Applications/OpenBB\ Terminal/.OpenBB/pywry, and communicates via localhost. openbb.co might need to be added to your list of domains, and modifying the .env file to include the network proxy address could help:

HTTP_PROXY="<ADDRESS>" or HTTPS_PROXY="<ADDRESS>”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants