[BUG] CC on Web or CC standalone App: "Claude Code execution failed" 100% of the time
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?
Claude Code on the web has been completely non-functional on my account for the past 48 hours. Every new session fails on initialization with: "An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session." Standard troubleshooting (cache clear, different browser, incognito) does not help. Same issues in the desktop app. Please investigate or escalate.
Plan: Max
Browser: Chrome on macOS
Reproduces: 100% across all repos and new sessions
CLI works normally with the same account
I am pretty sure this is related to setting up a dev environment after git clone and then starting CC and it dies.
<img width="1080" height="1386" alt="Image" src="https://github.com/user-attachments/assets/d9830164-5e44-40b8-b811-b303bd78466b" />
What Should Happen?
It used to work, though i did rename some things on github. So i deleted the github claude app and deleted the connection on CC side, and then re-connected but that does not seem to be it.
The cli works fine.
The CC desktop app has something slightly different:
<img width="771" height="174" alt="Image" src="https://github.com/user-attachments/assets/bcea6152-37b4-4fde-92af-c8d6989eb76a" />
Error Messages/Logs
API Error
An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.
An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.
Steps to Reproduce
I select a repo and then type anything. What i type does not matter. CC fails on anything and everything.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
CC on the Web
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Cursor
Additional Information
_No response_
19 Comments
<img width="799" height="1298" alt="Image" src="https://github.com/user-attachments/assets/77969bee-8206-435e-8298-8a48c0e83fb3" />
In the CC app, i was able to bring up the dev tools and saw this:
<img width="2230" height="616" alt="Image" src="https://github.com/user-attachments/assets/f8e4be21-fbe4-45e8-9449-8460e31d57cc" />
Back to the web version, there is also an event history:
!image
iOS app fails too
Tried looking at logs
!image
But that fails too
The support AI is terrible!
CC reports internal API errors, and the support AI can not let go of the idea that it must be a VPN on my side (no network API issues, really AI for real please please believe me).
_Steven: no. this is an error between CC on web and api for provisioning a dev environment, and so the calls are entirely without anthropic not between me and anthropic like the app or cli might do Steven • 16h and the cli is fine Steven • 16h You’re right to call that out: in Claude Code on the web, the “API Error” you’re seeing is coming from the cloud session’s call to our API (not a direct browser-to-Anthropic request), so it’s not the same as a local CLI connection issue.
Since your CLI works, this is most likely either: a network block (firewall, proxy, VPN) that prevents the cloud session from reaching api.anthropic.com, or an organization IP allowlist that blocks cloud sessions because they call the API from our infrastructure (not your network). Quick check: are you on a corporate network with IP allowlisting or a required proxy?_
So, apparently Anthropic has some internal VPN issues??? LoL
I have the same issue when I try to use /ultraplan
I thought if the cli used remote-control that would work. But i tried pasting an image to the remote controlled cli session and got this error:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.144.content.1.text: cache_control cannot be set for empty text blocks"},"request_id":"req_011CaYudCtp6KyVvNe1cL6FD"}I also tried text:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaYuyW2FwE76dWs7LCyn7"}So my idea of setting up worktrees in the cli, all with remote control, is not going to work.
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/6d87089d-f04e-498e-b578-c356e8fec178" />
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/ff0aa4f5-831c-4c65-ae51-218e05fa2513" />
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/c7f403b5-16af-450b-903f-6a490ed9f43b" />
older
[](https://claude.ai/code/session_01U8JLoP13X27q32HUK3RPQd)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/1c040910-4719-4cbd-8f90-c44693044369" />
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/17d096f4-3401-4d72-bcf6-720ee1833ec7" />
[](https://claude.ai/code/session_01XrPU6EbKV8JqN97ZFN5UHX)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/dfcb56e7-6c7d-48d4-9712-e8f66b57d252" />
[](https://claude.ai/code/session_01EfcvNvAkh3ZbE19TjGgNSr)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/fa293fd5-fdef-41d2-b818-08ea1feed4d2" />
The AI support told me to do /doctor /feedback and /bug but none work.
This happens to me 100% of the time across multiple projects and cloud envs (but works with local envs and via the CLI). Just completely bricked for me a few days ago and nothing since.
!image
Hmmm, I just tried with the Default cloud env and I got a response. I wonder if we don't need to delete and recreate our cloud envs? Maybe a bad caching issue on their side after recent upgrades?
What default cloud environment? How do I do that?
@rwdaigle Thanks! I figured it out.
If you have code that uses
ANTHROPIC_API_KEYand you set it in the env of the cloud env, claude code dies.Ah, ok - good find thanks!
Same thing worked for me - rename the anthropic key in the cloud env.
Looks like that's the fix.
This is a new issue though - I've had that key set in that cloudy env for months and was completely fine until a few days ago.
Agreed. This change was this week.
Admittedly, it did push me to not have keys directly in the env. Now I encrypt them and commit to source and the decrypt key is now in the env
I had the same issue, and the fix was as well removing or renaming the anthropic key in the cloud environment variables.
One proposed fix for anthropic is to
Closing for now — inactive for too long. Please open a new issue if this is still relevant.