API Error: Truncated event with using Bedrock Inference Profiles
Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 6 comments · opened Mar 3, 2025 · closed May 22, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator)
responded on this thread — see the highlighted reply below.
Bedrock Application Inference profiles are a great way to track costs between different applications in the same aws account.
Unfortunately, claude code seems to choke when using one :(.
ANTHROPIC_MODEL="arn:aws:bedrock:***:****:application-inference-profile/***" claude --verbose --debug -p hello
API Error: Truncated event message received.
Is it easy/possible to support these? I assumed the response from bedrock would be the same shape :*(.
6 Comments
Having the same issue.
I think the issue has to do with escaping the ARN - you need to switch the
/in the ARN to%2F:Doing this resolved the issue for me. I opened https://github.com/anthropics/anthropic-sdk-typescript/pull/715 in the underlying library to try to fix more automatically.
@clayallsopp you made my day
This may not be an issue anymore. On the latest version, I switched from
%2F->/v0.2.125 onwards added proper handling for
/, you should no longer pass%2Fin your inference profile ARNs.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.