[BUG] HTTP 407 error for pretooluse http hook with authentication in sandbox
Resolved 💬 2 comments Opened Jun 23, 2026 by haneul Closed Jul 16, 2026
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?
we started to see some errors with pretooluse hook from claude code since version v2.1.186.
PreToolUse:Bash hook error
HTTP 407 from [hook URL]
This happens only when sandbox is turned on, and with v2.1.186
Note that we already have this domain in the allowedDomains from the sandbox settings.
What Should Happen?
should be no error from hook.
Error Messages/Logs
PreToolUse:Bash hook error
HTTP 407 from [hook URL]
Steps to Reproduce
- enable sandbox
- bash echo hello world
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.185
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗