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

Performance page - ValueError, Executors must be a non-empty list of dictionaries #212

Closed
rapcmia opened this issue Dec 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rapcmia
Copy link
Contributor

rapcmia commented Dec 5, 2024

Describe the bug

When reviewing hyperliquid bot running for almost 2 days, archived and decided to check the performance page. However after selecting the controller and loading Global Metrics page, ValueError occurred

ValueError: Executors must be a non-empty list of dictionaries
Traceback:
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
    exec(code, module.__dict__)
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/frontend/pages/performance/bot_performance/app.py", line 43, in <module>
    asyncio.run(main())
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/frontend/pages/performance/bot_performance/app.py", line 31, in main
    display_global_results(data_source)
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/frontend/visualization/bot_performance.py", line 102, in display_global_results
    display_side_analysis(data_source, selected_controllers_filter, is_long=False)
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/frontend/visualization/bot_performance.py", line 124, in display_side_analysis
    results = fetch_long_results(executors_dict) if is_long else fetch_short_results(executors_dict)
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
    return cached_func(*args, **kwargs)
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 199, in __call__
    return self._get_or_create_cached_value(args, kwargs)
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 224, in _get_or_create_cached_value
    return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/home/rapcomia/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 280, in _handle_cache_miss
    computed_value = self._info.func(*func_args, **func_kwargs)
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/frontend/visualization/bot_performance.py", line 155, in fetch_short_results
    results_response = backend_api.get_performance_results(executors=executors_dict)
File "/home/rapcomia/hummingbot/dashboard/main-dashboard/backend/services/backend_api_client.py", line 312, in get_performance_results
    raise ValueError("Executors must be a non-empty list of dictionaries")

Logs from dashboard:
image

Steps to reproduce bug

  1. Setup deploy in source or docker
  2. Copy the content of the attached file on
    • Copy the instance folder to ./bots/archived
    • Copy the .json and .sqlite to ./bots/data folder
  3. Launch dashboard and go to performance page, load the database and observe

12052024.zip

@rapcmia rapcmia added the bug Something isn't working label Dec 5, 2024
@tomasgaudino
Copy link
Collaborator

hello there!

here is a PR fixing the issue: #215

initially the page was designed using perpetual strategies, so the short section was introducing issues. please check if this PR solves your issue,

regards

@rapcmia rapcmia closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants