Claude issue in Bedrock

Resolved 💬 3 comments Opened Feb 28, 2025 by junoriosity Closed Mar 1, 2025

Hi everyone,

when setting (in fish)

set -x DISABLE_PROMPT_CACHING 0
set -x ANTHROPIC_MODEL anthropic.claude-3-7-sonnet-20250219-v1:0
set -x CLAUDE_CODE_USE_BEDROCK 1

we get for claude

either

 claude

 Checking npm permissions…
Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:952:11)
    at Socket._write (node:net:964:8)
    at writeOrBuffer (node:internal/streams/writable:564:12)
    at _write (node:internal/streams/writable:493:10)
    at Writable.write (node:internal/streams/writable:502:10)
    at n6.sendToShell (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:343:423)
    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:340:1714
    at new Promise (<anonymous>) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

or we get

  ⎿  API Error: 400 Invocation of model ID anthropic.claude-3-7-sonnet-20250219-v1:0 with on-demand throughput isn’t supported. Retry your request with the ID or ARN of an inference profile that contains this model.

Do you know how to fix that?

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗