cannot reply
- Dominant language
- TypeScript
- Stars
- 283
- Forks
- 95
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 183
Description
### Description
AgentCore agent inspector
Error
{"timestamp": "2026-07-09T07:24:54.237Z", "level": "ERROR", "message": "Error in sync streaming", "logger": "bedrock_agentcore.app", "requestId": "94bba72b-7f95-452d-98b0-4c3832947b62", "sessionId": "3a36fa3d-10d6-434d-a9bc-048457e6eaad", "errorType": "NoCredentialsError", "errorMessage": "Unable to locate credentials", "stackTrace": ["Traceback (most recent call last):\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/bedrock_agentcore/runtime/app.py\", line 938, in _sync_stream_with_error_handling\n for value in generator:\n ^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/bedrock_agentcore/runtime/app.py\", line 786, in _async_gen_to_sync_gen\n raise value\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/bedrock_agentcore/runtime/app.py\", line 745, in _produce\n async for chunk in async_gen:\n ...<2 lines>...\n return\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/main.py\", line 118, in invoke\n async for event in agent.stream_async(\n ...<7 lines>...\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/agent/agent.py\", line 1193, in stream_async\n async for event in events:\n ...<5 lines>...\n yield as_dict\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/agent/agent.py\", line 1280, in _run_loop\n async for event in events:\n ...<14 lines>...\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/agent/agent.py\", line 1351, in _execute_event_loop_cycle\n async for event in events:\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/event_loop.py\", line 294, in event_loop_cycle\n async for model_event in model_events:\n if not isinstance(model_event, ModelStopReason):\n yield model_event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/event_loop.py\", line 632, in _handle_model_execution\n raise e\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/event_loop.py\", line 552, in _handle_model_execution\n async for event in agent._middleware_registry.invoke(\n ...<5 lines>...\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/_middleware/registry.py\", line 152, in invoke\n async for event in gen:\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/event_loop.py\", line 678, in terminal\n async for event in stream_messages(\n ...<10 lines>...\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/streaming.py\", line 514, in stream_messages\n async for event in process_stream(chunks, start_time, cancel_signal):\n yield event\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/event_loop/streaming.py\", line 424, in process_stream\n async for chunk in chunks:\n ...<35 lines>...\n handle_redact_content(chunk[\"redactContent\"], state)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/models/bedrock.py\", line 953, in stream\n await task\n", " File \"/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/threads.py\", line 25, in to_thread\n return await loop.run_in_executor(None, func_call)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py\", line 86, in run\n result = ctx.run(self.task)\n", " File \"/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/concurrent/futures/thread.py\", line 73, in run\n return fn(*args, **kwargs)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/opentelemetry/instrumentation/threading/__init__.py\", line 161, in wrapped_func\n return original_func(*func_args, **func_kwargs)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/strands/models/bedrock.py\", line 992, in _stream\n response = self.client.converse_stream(**request)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/client.py\", line 606, in _api_call\n return self._make_api_call(operation_name, kwargs)\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/opentelemetry/instrumentation/botocore/__init__.py\", line 290, in _patched_api_call\n result = original_func(*args, **kwargs)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/context.py\", line 123, in wrapper\n return func(*args, **kwargs)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/client.py\", line 1076, in _make_api_call\n http, parsed_response = self._make_request(\n ~~~~~~~~~~~~~~~~~~^\n operation_model, request_dict, request_context\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/client.py\", line 1100, in _make_request\n return self._endpoint.make_request(operation_model, request_dict)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/endpoint.py\", line 119, in make_request\n return self._send_request(request_dict, operation_model)\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/endpoint.py\", line 196, in _send_request\n request = self.create_request(request_dict, operation_model)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/endpoint.py\", line 132, in create_request\n self._event_emitter.emit(\n ~~~~~~~~~~~~~~~~~~~~~~~~^\n event_name,\n ^^^^^^^^^^^\n request=request,\n ^^^^^^^^^^^^^^^^\n operation_name=operation_model.name,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/hooks.py\", line 412, in emit\n return self._emitter.emit(aliased_event_name, **kwargs)\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/hooks.py\", line 256, in emit\n return self._emit(event_name, kwargs)\n ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/hooks.py\", line 239, in _emit\n response = handler(**kwargs)\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/signers.py\", line 108, in handler\n return self.sign(operation_name, request)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/signers.py\", line 200, in sign\n auth.add_auth(request)\n ~~~~~~~~~~~~~^^^^^^^^^\n", " File \"/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/botocore/crt/auth.py\", line 62, in add_auth\n raise NoCredentialsError()\n", "botocore.exceptions.NoCredentialsError: Unable to locate credentials\n"], "location": "/Users/mcmm/CustomerSupport/app/CustomerSupport/.venv/lib/python3.14/site-packages/bedrock_agentcore/runtime/app.py:_sync_stream_with_error_handling:941"}
Show less
Chat with
CustomerSupport
Local only
session: 3a36fa3d-10d…
Timeline view
What's the return policy for electronics?
e2ca99e155c7...
18
Jul 9 at 03:24:54 PM
Select an interaction to view
CustomerSupport
Resources
Traces
Memories
AGENTS
CustomerSupport
Not deployed
CodeZip
### Steps to Reproduce
1.
### Expected Behavior
leave
### Actual Behavior
leave
### CLI Version
_No response_
### Operating System
macOS
### Additional Context
_No response_
Contributor guide
Research direction
Reproduce the macOS case using the CustomerSupport app and the shown reply interaction. Start at CustomerSupport/main.py:118, then trace the failure through bedrock_agentcore/runtime/app.py:_sync_stream_with_error_handling:941 and the reported credentials error. Done means the reply completes without the NoCredentialsError; the issue does not provide a test or repository file to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python, typescript
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100