[BUG] SyntaxError: Unexpected token 'S', "[SandboxDeb"... is not valid JSON Troubleshooting resources

Resolved 💬 34 comments Opened Nov 18, 2025 by websofter Closed Jan 26, 2026
💡 Likely answer: A maintainer (ollie-anthropic, collaborator) responded on this thread — see the highlighted reply below.

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?

SyntaxError: Unexpected token 'S', "[SandboxDeb"... is not valid JSON

<img width="825" height="577" alt="Image" src="https://github.com/user-attachments/assets/8fa6f189-6c20-4bb8-a00c-0b74787e78ca" />

Troubleshooting resources

Doesn't respond when I ask a prompt

What Should Happen?

Work without errors and respond to requests

Error Messages/Logs

SyntaxError: Unexpected token 'S', "[SandboxDeb"... is not valid JSON Troubleshooting resources

Steps to Reproduce

Use versions

VS Code Version: 1.106.0
Commit: ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57
Date: 2025-11-11T16:02:25.943Z
Electron: 37.7.0
ElectronBuildId: 12597478
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.17.0-6-generic snapC

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.44 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

It works fine in the console, only the extension for VS Code does not work

View original on GitHub ↗

34 Comments

omersonc-ghost · 8 months ago

+1

Ragupathi-sterna · 8 months ago

+1

RossCampbellDev · 8 months ago

same here. took a look at ~/.claude.json and restored a backup but no change. doesn't appear to be the relevant file as it doesn't mention SandboxDeb... anyway

from ~/.config/Code/logs/<TIMESTAMP>/window5/exthost/Anthropic.claude-code/Claude VSCode.log:

``2025-11-18T11:45:38.278Z [DEBUG] Failed to check metrics opt-out status: Request failed with status code 401
172 2025-11-18T11:45:38.278Z [ERROR] "AxiosError: Error\n at Az (/$bunfs/root/claude:59:1142)\n at <anonymous> (/$bunfs/root/claude:64:10044)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:66:2146)\n at processTicksAndRejections (native:7:39)"
173 2025-11-18T11:45:38.297Z [DEBUG] Failed to fetch Grove notice config: AxiosError: Request failed with status code 401
174 [SandboxDebug] [Sandbox Linux] Seccomp filtering not available (missing binaries for x64). Sandbox will run without Unix socket blocking (allowAllUnixSockets mode). This is less restrictive but still provides filesystem and network isolation.
175 2025-11-18T11:45:38.302Z [DEBUG] Getting matching hook commands for SessionStart with query: startup
176 2025-11-18T11:45:38.302Z [DEBUG] Found 0 hook matchers in settings
177 2025-11-18T11:45:38.302Z [DEBUG] Matched 0 unique hooks for query "startup" (0 before deduplication)
178 2025-11-18T11:45:38.311Z [DEBUG] Total plugin output styles loaded: 0
179 2025-11-18T11:45:38.355Z [ERROR] "AxiosError: Error\n at Az (/$bunfs/root/claude:59:1142)\n at <anonymous> (/$bunfs/root/claude:64:10044)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:66:2146)\n at processTicksAndRejections (native:7:39)"
180 2025-11-18T11:45:38.557Z [DEBUG] Skills and commands included in Skill tool:
181 2025-11-18T11:45:38.557Z [DEBUG] Slash commands included in SlashCommand tool:
182 2025-11-18T11:45:38.600Z [DEBUG] Ripgrep first use test: PASSED (mode=builtin, path=/home/myuser/.vscode/extensions/anthropic.claude-code-2.0.44-linux-x64/resources/native-binary/claude)
183
184 2025-11-18 11:45:39.257 [info] Closing Claude on channel: o6k7yt7bt3s
185 2025-11-18 11:45:39.258 [error] Error from Claude (on channel o6k7yt7bt3s): SyntaxError: Unexpected token 'S', "[SandboxDeb"... is not valid JSON
``

jenkoon · 8 months ago

+1

fksc · 8 months ago

+1

ivo-Velzi · 8 months ago

+1

LecanuetG · 8 months ago

+1

eviltik · 8 months ago

+1

spookeyy · 8 months ago

+1

spookeyy · 8 months ago

rm -rf ~/.vscode/extensions/anthropic.claude-code-*/
rm -rf ~/.claude/

tried that and re installed the extension, but same issue persists.

spookeyy · 8 months ago

I switched back to version 2.0.42, it's working...
As we wait for the Anthropic team to provide version 2.0.45 that addresses the issue we experienced in version 2.0.44.

eviltik · 8 months ago

@spookeyy hi, how did you switch back ?

eviltik · 8 months ago

got it

<img width="458" height="507" alt="Image" src="https://github.com/user-attachments/assets/30bc2981-5021-4e35-9f85-a99230794852" />

spookeyy · 8 months ago

@eviltik that is right, "install specific version then choose the one updated 3 days ago, which is version 2.0.42

peelmicro · 7 months ago

Unfortunately, version 2.0.45 is still not working, really annoying!

<img width="1317" height="666" alt="Image" src="https://github.com/user-attachments/assets/b154e3c4-5e8e-426b-8120-91f7db6e0235" />

AshiqSazid · 7 months ago

switch back to the 2.0.42 and unmark auto update

SimonAtelic · 7 months ago

+1

DavidScanu · 7 months ago

Same here. Any solution ?

gauri-kumar · 7 months ago

Python SDK's broken too since the latest version uses latest cli

gauri-kumar · 7 months ago

@ledhcg the latest is 0.1.8 with 2.0.43+ (Issue#347 )

ledhcg · 7 months ago
@ledhcg the latest is 0.1.8 with 2.0.43+ (Issue#347 )

Im using Ubuntu, and version 0.1.8 still causes problems

gauri-kumar · 7 months ago

@ledhcg yeah. Workaround for 0.1.8 at the moment is removing the 'DEBUG' variable completely from env. It only causes issues if the variable is present.

ollie-anthropic collaborator · 7 months ago

Hey, this will be fixed in the release tomorrow. Sorry about this all.

As a workaround, gauri-kumar's suggestion will work:

removing the 'DEBUG' variable completely from env. It only causes issues if the variable is present.
Arjun-sourcesoft · 7 months ago

install Version 2.0.42 for now it is working for me

RobertSkawinski · 7 months ago
install Version 2.0.42 for now it is working for me

Confirm, downgrading to 2.0.42 solves the problem

andre-menutole · 7 months ago

install Version 2.0.42 for now it is working for me also (plugin) on vs code
+1 for a fix thanks

dayyanj · 7 months ago
@ledhcg yeah. Workaround for 0.1.8 at the moment is removing the 'DEBUG' variable completely from env. It only causes issues if the variable is present.

This worked for me too, thanks for the tip. - Need debug though so waiting for the update.

castorfou · 7 months ago

just tested with v2.0.49
no error message but kind of empty chat space.
back to v2.0.42

castorfou · 7 months ago

v2.0.51 fixed it for me

arenchilingaryan · 7 months ago

doesn't work for me

github-actions[bot] · 6 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] · 5 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 5 months ago

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.