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

error on fetching /all agents endpoint #110

Open
anantsparrow opened this issue Jan 24, 2025 · 3 comments
Open

error on fetching /all agents endpoint #110

anantsparrow opened this issue Jan 24, 2025 · 3 comments
Assignees

Comments

@anantsparrow
Copy link

bolna-app-1 | INFO: 223.185.62.122:30735 - "GET /all HTTP/1.1" 500 Internal Server Error
bolna-app-1 | 2025-01-24 19:48:32.808 ERROR {quickstart_server} [get_all_agents] Error fetching all agents: Expecting value: line 5 column 1 (char 4)
bolna-app-1 | Traceback (most recent call last):
bolna-app-1 | File "/app/quickstart_server.py", line 165, in get_all_agents
bolna-app-1 | agents = [{ "agent_id": key, "data": json.loads(data) } for key, data in zip(agent_keys, agents_data) if data]
bolna-app-1 | File "/app/quickstart_server.py", line 165, in
bolna-app-1 | agents = [{ "agent_id": key, "data": json.loads(data) } for key, data in zip(agent_keys, agents_data) if data]
bolna-app-1 | File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
bolna-app-1 | return _default_decoder.decode(s)
bolna-app-1 | File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
bolna-app-1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
bolna-app-1 | File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
bolna-app-1 | raise JSONDecodeError("Expecting value", s, err.value) from None
bolna-app-1 | json.decoder.JSONDecodeError: Expecting value: line 5 column 1 (char 4)
bolna-app-1 | INFO: 223.185.62.122:14421 - "GET /all HTTP/1.1" 500 Internal Server Error

@prateeksachan
Copy link
Member

cc @khushaljethava

@khushaljethava
Copy link
Contributor

It seems there is an issue with fetching data from the Redis database.

@prateeksachan
Copy link
Member

hey @anantsparrow can you try again. @khushaljethava has pushed a fix for this issue.

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

3 participants