Skip to content

fix(aws): async _prepare_request blocks eventloop - #1774

Open
retornam wants to merge 1 commit into
anthropics:mainfrom
retornam:retornam/edits
Open

fix(aws): async _prepare_request blocks eventloop#1774
retornam wants to merge 1 commit into
anthropics:mainfrom
retornam:retornam/edits

Conversation

@retornam

Copy link
Copy Markdown

This fixes issues/1170 where AsyncAnthropicBedrock performs AWS credentialresolution and SigV4 signing synchronously on the event-loop thread.

This change fixes _prepare_request to wrap the blocking call so it runs off the event loop thread.

This fixes [issues/1170][1] where AsyncAnthropicBedrock performs AWS
credentialresolution and SigV4 signing synchronously on the
event-loop thread.

This change fixes `_prepare_request` to wrap the blocking call so it
runs off the event loop thread.

[1]: anthropics#1770

Signed-off-by: Raymond Etornam <retornam@users.noreply.github.com>
@retornam
retornam requested a review from a team as a code owner July 22, 2026 18:06
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

Successfully merging this pull request may close these issues.

AsyncAnthropicBedrock blocks the event loop during AWS credential resolution or signing

1 participant