[GH-ISSUE #4193] [BUG]: Cannot call agent mode when using IAM role implied credentials #2668

Closed
opened 2026-02-22 18:30:42 -05:00 by yindo · 2 comments
Owner

Originally created by @bechir2000 on GitHub (Jul 23, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4193

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

All versions

What happened?

When calling agent mode using @agent and using IAM role implied credentials, we get an error "Resolved credential object is not valid"

Image

Are there known steps to reproduce?

No response

Originally created by @bechir2000 on GitHub (Jul 23, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4193 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? All versions ### What happened? When calling agent mode using @agent and using IAM role implied credentials, we get an error "Resolved credential object is not valid" <img width="884" height="382" alt="Image" src="https://github.com/user-attachments/assets/328a87a4-d968-4b71-86c9-97686c93ddbc" /> ### Are there known steps to reproduce? _No response_
yindo added the possible buginvestigating labels 2026-02-22 18:30:42 -05:00
yindo closed this issue 2026-02-22 18:30:43 -05:00
Author
Owner

@bechir2000 commented on GitHub (Jul 23, 2025):

I am using anthropic claude 3.5 sonnet with aws bedrock

@bechir2000 commented on GitHub (Jul 23, 2025): I am using anthropic claude 3.5 sonnet with aws bedrock
Author
Owner

@bechir2000 commented on GitHub (Jul 31, 2025):

Ok, i fixed the issue. You go to server/utils/agents/aibitat/providers/bedrock.js
case "iam_role": return {}; default: return {};
This is the old one. Change to
case "iam_role": return undefined; default: return undefined;

@bechir2000 commented on GitHub (Jul 31, 2025): Ok, i fixed the issue. You go to server/utils/agents/aibitat/providers/bedrock.js `case "iam_role": return {}; default: return {};` This is the old one. Change to `case "iam_role": return undefined; default: return undefined;`
yindo changed title from [BUG]: Cannot call agent mode when using IAM role implied credentials to [GH-ISSUE #4193] [BUG]: Cannot call agent mode when using IAM role implied credentials 2026-06-05 14:47:52 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2668