Yes facing this error and costed me 30 req
Yes workspace path have space in the my name similar error we face in react native if the workspace path is long or have space the build was failing
Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
When i’m trying to run a script in an angular project inside a package.json, the chat give me always the same error.
Connection failed. If the problem persists, please check your internet connection or VPN.
Request ID: e3568328-bae2-47b0-8dfa-ee212373b355
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/sergio.dipinto/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7278:369901
I’m not connected to a vpn and I already did the connection analysis
Steps to Reproduce
I ask the chat to run the script
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.28 (user setup)
VSCode Version: 1.99.3
Commit: adb0f9e3e4f184bba7f3fa6dbfd72ad0ebb8cfd0
Date: 2025-10-01T02:45:21.769Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Whenever the agent tries to run tests using it’s own terminal, it encounters an error and stops working. As long as that test request is present in chat we get Serialization error, no matter the model chosen. Other terminal operations like executing scripts runs ok.
Request ID: 018fe128-6d24-40d8-873e-741b7c8e7acb
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/tomasz/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7278:369901
Steps to Reproduce
Ask an agent to run any tests using npm. It will think, plan it’s steps but as soon as the terminal will appear in it’s panel, it throws an error.
Expected Behavior
Whenever the agent tries to run tests in the terminal, it should run them and use them for it’s context. Probably as expected by most.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.28 (user setup)
VSCode Version: 1.99.3
Commit: adb0f9e3e4f184bba7f3fa6dbfd72ad0ebb8cfd0
Date: 2025-10-01T02:45:21.769Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Does this stop you from using Cursor
Yes - Cursor is unusable
Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Having an issue with running commands and getting the error information shown below. I do not have any network issues on HTTP/2 or HTTP/1.0. My WiFi is stable, I’ve restarted the application, updated it, and I have restarted my computer, but I am still getting this error. How can I resolve this?
Request ID: 73df1dac-a803-4324-ba63-1b32e29e13e0
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/edaley005/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6716:369901
Steps to Reproduce
Not sure how to reproduce other than trying to submit a chat.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.28 (user setup)
VSCode Version: 1.99.3
Commit: adb0f9e3e4f184bba7f3fa6dbfd72ad0ebb8cfd0
Date: 2025-10-01T02:45:21.769Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631
For AI issues: which model did you use?
Agent Auto mode
For AI issues: add Request ID with privacy disabled
(Request ID: 73df1dac-a803-4324-ba63-1b32e29e13e0)
(Request ID: 38e4d228-e885-4f22-84a9-daa900f96430)
Does this stop you from using Cursor
Yes - Cursor is unusable
Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Getting this every hour now - been happening after the last upgrade of the softwareConnection failed. If the problem persists, please check your internet connection or VPN
Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools [internal]
(Request ID: 3144d592-7afe-4d27-bf0b-7da58aa5af1f)
This is NOT my network - you can start a new agent session and it works fine
Steps to Reproduce
just doing agent work
Expected Behavior
It should be able to recover never happens
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.28 (user setup)
VSCode Version: 1.99.3
Commit: adb0f9e3e4f184bba7f3fa6dbfd72ad0ebb8cfd0
Date: 2025-10-01T02:45:21.769Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
For AI issues: which model did you use?
Sonnet 4.5 . Sonnet 4 - ot does not matter
For AI issues: add Request ID with privacy disabled
Request ID: 3144d592-7afe-4d27-bf0b-7da58aa5af1f
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/JorgenChristiansen/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7278:369901
Does this stop you from using Cursor
Yes - Cursor is unusable
Issue Identified:
Actually, I identified that the issue occurs when running npm ci
. I changed it to this:
Ensure Working Directory for npm ci
Description: Ensure the correct working directory for npm ci
.
Globs: ["**/*"]
alwaysApply: true
Ensure Working Directory for npm ci
Before running npm ci
, ensure the terminal is in the correct workspace directory.
cd "/path/to/your/project" ; npm ci
Where does the bug appear (feature/product)?
BugBot
Describe the Bug
Connection failed. If the problem persists, please check your internet connection or VPN
Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools [internal]
(Request ID: 4707df38-a4d0-494a-85db-e03b25babf9a)
Steps to Reproduce
Connection failed. If the problem persists, please check your internet connection or VPN
Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools [internal]
(Request ID: 4707df38-a4d0-494a-85db-e03b25babf9a)
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.11 (user setup)
VSCode Version: 1.99.3
Commit: 867f14c797c14c23a187097ea179bc97d215a7c0
Date: 2025-09-26T16:55:04.318Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Hey, thanks for the report. We’re aware of this issue and the team is working on a fix.
I have noticed this happens in the new agent window. Somehow the console looses the default cd of the project and/or has other issues related to console specifically - maybe this will help.
Hey, thanks for the info, it’s helpful.
So before I got the update recently it wasnt defaulting to C:\users\{user}\package.json.
Moreover, there is NO package.json there. I don’t know why cursor started redirecting there, previously every console was starting/booting up in the proper directory, now I added a rule for AI to cd to the right directory of the project but often the automatic calls (I allowed some, including restart scripts for docker etc) - omit running cd and running into ENOENT - so calling in the wrong directory.
Hope it helps, cursor is an incredibly awesome piece of software, keep up the awesome work!
@deanrie
Hi deanrie, ive been getting the same error more frequently since the last update, has there been any update as its eating up my requests
-Trace
Any Update? It is annoying, since few days I am not able to do anything in Cursor IDE
Any updates on this? I haven’t been able to use Cursor for over a week due to this bug.
Connection failed. If the problem persists, please check your internet connection or VPN
Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools [internal]
(Request ID: a76ebaf1-1051-40fc-a3a8-e591ae538b94)
Try to download 1.6 version and downgrade Cursor, works for me.
Same here. Independent from the model, this error is poping up. Currently it’s unusable. I’m on 1.7.33
Same here:
Connection failed. If the problem persists, please check your internet connection or VPN (DIAGNOSIS WORKS IN CURSOR SETTINGS, NOT USING VPN)
Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools [internal]
(Request ID: 5935b01d-5137-455c-9f32-ac7584440109)
Same issue:
Version: 1.7.33 (user setup)
VSCode Version: 1.99.3
Commit: a84f941711ad680a635c8a3456002833186c4840
Date: 2025-10-03T03:28:06.574Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Request ID: bff39785-c867-4283-8e68-b6a052092eb0
ConnectError: [internal] Serialization error in aiserver.v1.StreamUnifiedChatRequestWithTools
at vscode-file://vscode-app/c:/Users/Andrew/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7281:369901