aws-samples / aws-samples/sample-devgenius-aws-solution-builder
Application giving error after installing via CDK
- Dominant language
- Python
- Stars
- 249
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I have installed this application using CDK, no errors during installation but after installation is final, i got error while running the app.
ValueError: Unexpected Error:: 'orchestrationTrace'
Traceback:
File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.__dict__)
File "/app/agent.py", line 229, in
ask_user, agent_answer = read_agent_response(event_stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/utils.py", line 148, in read_agent_response
raise ValueError(f"Unexpected Error:: {str(e)}")
Contributor guide
Research direction
Reproduce the runtime failure after installing with CDK, then inspect /app/agent.py around line 229 and /app/utils.py around line 148, especially how read_agent_response handles event_stream. Compare the event data reaching that function with the expected response shape; done means the installed Streamlit app runs without raising the reported orchestrationTrace error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python, streamlit
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100