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 During Multistep Task exucution #1283

Open
8 of 10 tasks
birdup000 opened this issue Nov 25, 2024 · 1 comment
Open
8 of 10 tasks

Error During Multistep Task exucution #1283

birdup000 opened this issue Nov 25, 2024 · 1 comment
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.

Comments

@birdup000
Copy link
Contributor

Description

INFO: 172.18.0.4:56106 - "POST /api/chain/Improving%20Inference%20Speed%20for%20AI%20Models/run HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/agixt/endpoints/Chain.py", line 50, in run_chain
chain_response = await AGiXT(
File "/agixt/XT.py", line 599, in execute_chain
task = await self.run_chain_step(
File "/agixt/XT.py", line 466, in run_chain_step
args = self.chain.get_step_content(
File "/agixt/Chain.py", line 796, in get_step_content
step_response = self.get_step_response(
File "/agixt/Chain.py", line 556, in get_step_response
ChainStep.chain_id == chain_data["id"],
TypeError: list indices must be integers or slices, not str

Operating System

  • Linux
  • Windows
  • MacOS

Acknowledgements

  • I am NOT trying to use localhost for providers running outside of the docker container.
  • I am NOT trying to run AGiXT outside of docker, the only supported method to run it.
  • Python 3.10.X is installed and the version in use on the host machine.
  • The latest version of Docker is installed and running on the host machine.
  • I am using the latest stable version of AGiXT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
  • I have searched the existing issues to make sure this bug has not been reported yet.
@birdup000 birdup000 added needs triage Needs labels assigned. type | report | bug Confirmed bug in source code. labels Nov 25, 2024
@birdup000
Copy link
Contributor Author

birdup000 commented Nov 25, 2024

The error occurs in Chain.py when trying to access chain_data["id"]. The error suggests chain_data is a list but we're trying to access it like a dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.
Projects
None yet
Development

No branches or pull requests

1 participant