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

AWS credential changes not handled #3556

Open
PaulWaldo opened this issue Mar 16, 2025 · 0 comments
Open

AWS credential changes not handled #3556

PaulWaldo opened this issue Mar 16, 2025 · 0 comments

Comments

@PaulWaldo
Copy link

Issue

I am using AWS Bedrock models. I am required to use IAM credentials that expire in one hour. Everything works great until the credentials expire. At that point I get

litellm.APIConnectionError: BedrockException - b'{"message":"The security token included in the request is expired"}'
Retrying in 0.2 seconds...

I expected that I would be able to just refresh the credentials, where these updated values get written to ~/aws/config.

What I observe is that refreshing the credentials still gives the same error. It appears that the credentials are cached, which causes me to have to completely exit aider and start again.

Version and model info

architect> /settings

Aider v0.77.0
Main model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with architect edit format, infinite output
Editor model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0 with editor-diff edit format
Weak model: bedrock/us.anthropic.claude-3-5-haiku-20241022-v1:0
Git repo: .git with 41 files
Repo-map: using 4096 tokens, auto refresh
Added ../../../../../private/var/folders/bp/j3jhljb56rbf7qw9qhh60_n00000gp/T/tmpbtkgg659/clipboard_image.png to the chat.
Added ui/groupphotos.go to the chat.
Added ui/groupphotos_test.go to the chat.
Added ui/main.go to the chat.
Added CONVENTIONS.md to the chat (read-only).
Added project_docs/groupphotodesign.md to the chat (read-only).
Restored previous conversation history.
Config File (/Volumes/ExternalHome/src/personal/glimmer/.aider.conf.yml):
model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
openai-api-base: https://glhf.chat/api/openai/v1
read: ['CONVENTIONS.md']
architect: True
auto-commits: False
attribute-committer:True
attribute-commit-message-author:True
attribute-author: True
test-cmd: go test ./...
auto-test: True
Defaults:
--set-env: []
--api-key: []
--model-settings-file:.aider.model.settings.yml
--model-metadata-file:.aider.model.metadata.json
--cache-keepalive-pings:0
--map-refresh: auto
--map-multiplier-no-files:2
--input-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.input.history
--chat-history-file:/Volumes/ExternalHome/src/personal/glimmer/.aider.chat.history.md
--user-input-color:#00cc00
--tool-error-color:#FF2222
--tool-warning-color:#FFA500
--assistant-output-color:#0088ff
--code-theme: default
--aiderignore: /Volumes/ExternalHome/src/personal/glimmer/.aiderignore
--lint-cmd: []
--voice-format: wav
--voice-language: en
--encoding: utf-8
--line-endings: platform
--env-file: /Volumes/ExternalHome/src/personal/glimmer/.env

Option settings:

  • 35turbo: False
  • 4: False
  • 4_turbo: False
  • 4o: False
  • aiderignore: /Volumes/ExternalHome/src/personal/glimmer/.aiderignore
  • alias: None
  • analytics: None
  • analytics_disable: False
  • analytics_log: None
  • anthropic_api_key: None
  • api_key: []
  • apply: None
  • apply_clipboard_edits: False
  • assistant_output_color: #0088ff
  • attribute_author: True
  • attribute_commit_message_author: True
  • attribute_commit_message_committer: False
  • attribute_committer: True
  • auto_accept_architect: True
  • auto_commits: False
  • auto_lint: True
  • auto_test: True
  • cache_keepalive_pings: 0
  • cache_prompts: False
  • chat_history_file: /Volumes/ExternalHome/src/personal/glimmer/.aider.chat.history.md
  • chat_language: None
  • check_update: True
  • code_theme: default
  • commit: False
  • commit_prompt: None
  • completion_menu_bg_color: None
  • completion_menu_color: None
  • completion_menu_current_bg_color: None
  • completion_menu_current_color: None
  • config: None
  • copy_paste: False
  • dark_mode: False
  • deepseek: False
  • detect_urls: True
  • dirty_commits: True
  • dry_run: False
  • edit_format: architect
  • editor: None
  • editor_edit_format: None
  • editor_model: None
  • encoding: utf-8
  • env_file: /Volumes/ExternalHome/src/personal/glimmer/.env
  • exit: False
  • fancy_input: True
  • file: None
  • files: []
  • git: True
  • gitignore: True
  • gui: False
  • haiku: False
  • input_history_file: /Volumes/ExternalHome/src/personal/glimmer/.aider.input.history
  • install_main_branch: False
  • just_check_update: False
  • light_mode: False
  • line_endings: platform
  • lint: False
  • lint_cmd: []
  • list_models: None
  • llm_history_file: None
  • load: None
  • map_multiplier_no_files: 2
  • map_refresh: auto
  • map_tokens: None
  • max_chat_history_tokens: None
  • message: None
  • message_file: None
  • mini: False
  • model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
  • model_metadata_file: .aider.model.metadata.json
  • model_settings_file: .aider.model.settings.yml
  • multiline: False
  • notifications: False
  • notifications_command: None
  • o1_mini: False
  • o1_preview: False
  • openai_api_base: https://glhf.chat/api/openai/v1
  • openai_api_deployment_id: None
  • openai_api_key: None
  • openai_api_type: None
  • openai_api_version: None
  • openai_organization_id: None
  • opus: False
  • pretty: True
  • read: ['CONVENTIONS.md']
  • reasoning_effort: None
  • restore_chat_history: False
  • set_env: []
  • show_diffs: False
  • show_model_warnings: True
  • show_prompts: False
  • show_release_notes: None
  • show_repo_map: False
  • skip_sanity_check_repo: False
  • sonnet: False
  • stream: True
  • subtree_only: False
  • suggest_shell_commands: True
  • test: False
  • test_cmd: go test ./...
  • thinking_tokens: None
  • timeout: None
  • tool_error_color: #FF2222
  • tool_output_color: None
  • tool_warning_color: #FFA500
  • upgrade: False
  • user_input_color: #00cc00
  • verbose: False
  • verify_ssl: True
  • vim: False
  • voice_format: wav
  • voice_input_device: None
  • voice_language: en
  • watch_files: False
  • weak_model: None
  • yes_always: None
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

1 participant