hummingbot / dashboard

Application that helps you create, backtest, deploy, and manage Hummingbot instances
Apache License 2.0
162 stars 98 forks source link

Bug Report : Authorization doesn't work 1.27 #132

Closed AlexeyBoiler closed 1 month ago

AlexeyBoiler commented 2 months ago

Describe the bug

When I enabled authorization, it now displays: AttributeError: 'Authenticate' object has no attribute 'credentials' Traceback: File "/root/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script exec(code, module.dict) File "/opt/hummingbot-dashboard/dashboard/main.py", line 110, in config["credentials"] = st.session_state.authenticator.credentials Capture-2024-04-30-201920

Steps to reproduce bug

anselumana commented 2 months ago

+1

I solved it by replacing line 110 with the following: config["credentials"] = st.session_state.authenticator.authentication_handler.credentials

david-hummingbot commented 1 month ago

As mentioned here - https://github.com/hummingbot/dashboard/issues/112 we are currently doing a major overhaul of the dashboard for the May release. You can test it out here - https://github.com/cardosofede/hummingbot-deploy

Please test and provide feedback here in Github or in our #dashboard channel in Discord!