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 Report Instances Page can not display. #196

Open
lolieatapple opened this issue Nov 18, 2024 · 2 comments
Open

Bug Report Instances Page can not display. #196

lolieatapple opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lolieatapple
Copy link

Describe the bug

image

I can't use the instances page.

Steps to reproduce

  1. run until one side token is less than required.

Release version

v2.0.1

Type of installation

Docker

Attach required files

KeyError: 'timestamp'
2024-10-16 05:05:26.070 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_dynamic/app.py", line 36, in
candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"],
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
return cached_func(*args, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in call
return self._get_or_create_cached_value(args, kwargs)
File "/opt/conda/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 "/opt/conda/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/dashboard/frontend/pages/config/utils.py", line 26, in get_candles
df.index = pd.to_datetime(df.timestamp, unit='s')
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'timestamp'. Did you mean: 'to_timestamp'?
2024-10-16 05:05:34.410 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_dynamic/app.py", line 36, in
candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"],
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
return cached_func(*args, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in call
return self._get_or_create_cached_value(args, kwargs)
File "/opt/conda/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 "/opt/conda/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/dashboard/frontend/pages/config/utils.py", line 26, in get_candles
df.index = pd.to_datetime(df.timestamp, unit='s')
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'timestamp'. Did you mean: 'to_timestamp'?
2024-10-16 05:05:37.478 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_dynamic/app.py", line 36, in
candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"],
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
return cached_func(*args, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in call
return self._get_or_create_cached_value(args, kwargs)
File "/opt/conda/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 "/opt/conda/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/dashboard/frontend/pages/config/utils.py", line 26, in get_candles
df.index = pd.to_datetime(df.timestamp, unit='s')
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'timestamp'. Did you mean: 'to_timestamp'?
2024-10-17 04:12:46.634 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_dynamic/app.py", line 36, in
candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"],
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
return cached_func(*args, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in call
return self._get_or_create_cached_value(args, kwargs)
File "/opt/conda/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 "/opt/conda/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/dashboard/frontend/pages/config/utils.py", line 26, in get_candles
df.index = pd.to_datetime(df.timestamp, unit='s')
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'timestamp'. Did you mean: 'to_timestamp'?
2024-10-22 03:19:36.651 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_simple/app.py", line 22, in
inputs = user_inputs()
File "/home/dashboard/frontend/pages/config/pmm_simple/user_inputs.py", line 10, in user_inputs
sell_order_amounts_pct = get_executors_distribution_inputs()
File "/home/dashboard/frontend/components/executors_distribution.py", line 68, in get_executors_distribution_inputs
buy_amount_distributions = get_distribution(buy_amount_dist_type, buy_order_levels, buy_amount_start,
File "/home/dashboard/frontend/components/st_inputs.py", line 77, in get_distribution
distribution = Distributions.geometric(n_levels, start, ratio)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/hummingbot/strategy_v2/utils/distributions.py", line 107, in geometric
raise ValueError(
ValueError: Ratio for modified geometric distribution should be greater than 1 for increasing spreads.
2024-10-29 13:54:52.836 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/pmm_simple/app.py", line 22, in
inputs = user_inputs()
File "/home/dashboard/frontend/pages/config/pmm_simple/user_inputs.py", line 10, in user_inputs
sell_order_amounts_pct = get_executors_distribution_inputs()
File "/home/dashboard/frontend/components/executors_distribution.py", line 71, in get_executors_distribution_inputs
sell_amount_distributions = get_distribution(sell_amount_dist_type, sell_order_levels, sell_amount_start,
File "/home/dashboard/frontend/components/st_inputs.py", line 77, in get_distribution
distribution = Distributions.geometric(n_levels, start, ratio)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/hummingbot/strategy_v2/utils/distributions.py", line 107, in geometric
raise ValueError(
ValueError: Ratio for modified geometric distribution should be greater than 1 for increasing spreads.
2024-11-12 13:53:33.171 Session with id bf1abef5-148a-48a3-a9e4-7f2e944fc16a is already connected! Connecting to a new session.
2024-11-18 02:32:50.385 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/init.py", line 514, in loads
return _default_decoder.decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/orchestration/instances/app.py", line 49, in
active_bots_response = api_client.get_active_bots_status()
File "/home/dashboard/backend/services/backend_api_client.py", line 142, in get_active_bots_status
return self.get(endpoint)
File "/home/dashboard/backend/services/backend_api_client.py", line 48, in get
return self._process_response(response)
File "/home/dashboard/backend/services/backend_api_client.py", line 55, in _process_response
return response.json()
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-11-18 02:36:00.074 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/init.py", line 514, in loads
return _default_decoder.decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/orchestration/instances/app.py", line 49, in
active_bots_response = api_client.get_active_bots_status()
File "/home/dashboard/backend/services/backend_api_client.py", line 142, in get_active_bots_status
return self.get(endpoint)
File "/home/dashboard/backend/services/backend_api_client.py", line 48, in get
return self._process_response(response)
File "/home/dashboard/backend/services/backend_api_client.py", line 55, in _process_response
return response.json()
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-11-18 02:36:09.396 Uncaught app exception
Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/init.py", line 514, in loads
return _default_decoder.decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/orchestration/instances/app.py", line 49, in
active_bots_response = api_client.get_active_bots_status()
File "/home/dashboard/backend/services/backend_api_client.py", line 142, in get_active_bots_status
return self.get(endpoint)
File "/home/dashboard/backend/services/backend_api_client.py", line 48, in get
return self._process_response(response)
File "/home/dashboard/backend/services/backend_api_client.py", line 55, in _process_response
return response.json()
File "/opt/conda/envs/dashboard/lib/python3.10/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@lolieatapple lolieatapple added the bug Something isn't working label Nov 18, 2024
@rapcmia rapcmia transferred this issue from hummingbot/hummingbot Nov 18, 2024
@rapcmia
Copy link
Contributor

rapcmia commented Nov 18, 2024

Hi @lolieatapple can you share a config we can use to reproduce this error? thanks

@lolieatapple
Copy link
Author

image image

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