[BUG] Native installation / binary return API errors

Open 💬 12 comments Opened Sep 16, 2025 by secustor

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

While using the native binary, using ( specific? ) internal tools will result in an API Error.

Using the NPM installation method doesn't show doesn't result in those problems

What Should Happen?

Claude Code should be able to run without API errors, when using tools

Error Messages/Logs

⏺ Update(cmd/automations/patch-auto/pr_processor_test.go)
  ⎿  File must be read first
[DEBUG] Hooks: getAsyncHookResponseAttachments called
[DEBUG] Hooks: checkForNewResponses called
[DEBUG] Hooks: Found 0 total hooks in registry
[DEBUG] Hooks: checkForNewResponses returning 0 responses


  ⎿  API Error: undefined is not an object (evaluating 'Z.map')
[DEBUG] Executing hooks for Stop
[DEBUG] Getting matching hook commands for Stop with query: undefined
[DEBUG] Found 1 hook matchers in settings
[DEBUG] Matched 2 unique hooks for query "no match query" (2 before deduplication)
[DEBUG] Found 2 hook commands to execute
[DEBUG] Executing hook command: make fix with timeout 300000ms
[DEBUG] Executing hook command: make test-coverage with timeout 300000ms
[DEBUG] Hook command completed with status 0: make

Steps to Reproduce

  1. Install via homebrew native installation method.
  2. Run tasks
  3. Randomly API error messages appear and stop running

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.115

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

We are running inside of a teleport proxy tsh aws exec inject the AWS environment variables such as HTTPS_PROXY, AWS_ACCESS_KEY_ID, AWS_CA_BUNDLE and others.
Further we manually inject NODE_EXTRA_CA_CERTS

What I have tried:

  • Setting NO_PROXY to localhost and localhost,127.0.0.1
  • Setting CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

View original on GitHub ↗

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