Connection failed. Please try again,How to solve this?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Connection failed. Please try again, or contact support if the issue persists.
Request ID: 5bb26cc7-9550-49b0-b642-21510cf5ae3a
Image selected in conversation was not found on disk: /Users/thezeng/Library/Application Support/Cursor/User/workspaceStorage/images/image-7409d0ef-82a5-467e-b9a5-a75d5c25de19.png
Error: Image selected in conversation was not found on disk: /Users/thezeng/Library/Application Support/Cursor/User/workspaceStorage/images/image-7409d0ef-82a5-467e-b9a5-a75d5c25de19.png
at qey (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34283:12955)
at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34283:14295
at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46857:284
at async Promise.all (index 0)
at async X3u._gatherImageSelections (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46857:242)
at async Promise.all (index 2)
at async X3u.buildComposerSelectedContext (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:2303)
at async X3u.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:5498)
at async X3u.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:13663)
at async bMe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34305:17597)
at async Ea (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:45787:4826)

Steps to Reproduce

Request ID: 5bb26cc7-9550-49b0-b642-21510cf5ae3a
Image selected in conversation was not found on disk: /Users/thezeng/Library/Application Support/Cursor/User/workspaceStorage/images/image-7409d0ef-82a5-467e-b9a5-a75d5c25de19.png
Error: Image selected in conversation was not found on disk: /Users/thezeng/Library/Application Support/Cursor/User/workspaceStorage/images/image-7409d0ef-82a5-467e-b9a5-a75d5c25de19.png
at qey (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34283:12955)
at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34283:14295
at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46857:284
at async Promise.all (index 0)
at async X3u._gatherImageSelections (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46857:242)
at async Promise.all (index 2)
at async X3u.buildComposerSelectedContext (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:2303)
at async X3u.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:5498)
at async X3u.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:13663)
at async bMe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34305:17597)
at async Ea (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:45787:4826)

Operating System

MacOS

Version Information

Version: 2.6.18 (Universal)
VSCode Version: 1.105.1
Commit: 68fbec5aed9da587d1c6a64172792f505bafa250
Date: 2026-03-10T02:01:17.430Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

auto

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report with the stack trace. It helped.

This is a known bug. In your case, the “Connection failed” error isn’t related to the network. It happens because the chat contains a link to an image that was deleted from disk. Cursor tries to collect context to send and crashes on the client side before it even reaches the server.

Workaround: start a new chat without the link to that image, and the error should go away. If the history in the current chat matters, you can try removing the attached image from the context before sending.

Let me know if the workaround doesn’t help.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.