Cursor "Connection failed. If the problem persists, please check your internet connection or VPN": the fix path
Users of the Cursor editor report this message in the chat and Agent panels when a request to Cursor's servers fails or its response stream breaks, usually with a Request ID underneath. The wording is user-reported: it was not found on any official Cursor documentation page on 9 November 2026. The fix path below is taken from Cursor's own network help pages as fetched that day, plus connectivity checks run from one Mac.
The 30-second answer
- Run the built-in test first: Cursor Settings > Network > Run Diagnostics (Cursor help, "Network, proxy, and remote connections").
- Behind a corporate proxy? Cursor's help page says to set HTTP Compatibility Mode to HTTP/1.1 in Cursor Settings > Network, then restart Cursor.
- Behind a firewall or TLS-inspecting gateway? Allowlist Cursor's documented domains and ask IT to exclude them from SSL inspection (lists below).
- Check status.cursor.com. When it was queried for this page on 9 November 2026 it reported "Partially Degraded Service"; check it for the current state.
- If your network checks out, it may not be you. Copy the Request ID and send it to Cursor; a Cursor staff forum post says many different errors sit behind this one message.
The exact error
Connection failed. If the problem persists, please check your internet connection or VPN
Where this wording comes from: user reports on Cursor's official forum, forum.cursor.com, where a search for the full sentence on 9 November 2026 returned dozens of posts and topic titles. Reports often paste a Request ID: line with it, and several show it under a "Connection Error" heading. It is not taken from official Cursor documentation, and it was not reproduced here. The newest user report found in that search was dated 31 January 2026, so the current Cursor build may word it differently.
Verified against Cursor's help pages and one network — 9 November 2026
Confirmed on official pages fetched today:
- Network, proxy, and remote connections (Cursor help): the Run Diagnostics step, the HTTP/1.1 setting, the domain allowlist, the SSH and VPN/DNS notes.
- Network configuration (Cursor docs): SSL-inspection exclusions, the per-host list, the curl tests, the troubleshooting checklist.
- Reporting a bug (Cursor help): how to copy a Request ID.
- Cursor forum, staff post (25 December 2025, Community Support Engineer), quoting the message: "A lot of errors are hidden behind this message. It is very often an us problem, not a you problem (or something in the middle: an MCP server misbehaving…)."
Run today from one network (macOS 15.7.9, curl 8.7.1, no HTTP proxy configured, a VPN client connected). These are example diagnostics you can repeat; they show what a clean path looks like, not what your network does.
$ curl -sI --http2 https://api2.cursor.sh | head -1 HTTP/2 200 $ curl -sI --http1.1 https://api2.cursor.sh | head -1 HTTP/1.1 200 OK
The same two requests against other documented hosts: marketplace.cursorapi.com, authenticate.cursor.sh, agent.api5.cursor.sh and cursor.com answered 200 over HTTP/2; api3.cursor.sh and repo42.cursor.sh negotiated HTTP/2 and answered 404 at the root path (reachable). The bare name api5.cursor.sh, which the docs list, did not resolve from this network (curl: (6) Could not resolve host), so a DNS failure on that one name is not by itself proof of a block.
Cursor's documented certificate check, written in the docs as curl -v https://api2.cursor.sh |& grep -C1 issuer:, returned:
* subjectAltName: host "api2.cursor.sh" matched cert's "api2.cursor.sh" * issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M04 * SSL certificate verify ok.
Cursor's two documented streaming tests (commands in Cause 3) were also run. Arrival times were added by a small local helper; framing bytes are stripped:
--- HTTP/1.1 SSE (StreamSSE)
[+0.1s] {"payload":"foo"}
[+1.1s] {"payload":"foo"}
[+2.1s] {"payload":"foo"}
[+3.1s] {"payload":"foo"}
[+4.1s] {"payload":"foo"}
--- HTTP/2 bidirectional (StreamBidi)
[+1.0s] {"payload":"foo1"}
[+2.0s] {"payload":"foo2"}
[+3.0s] {"payload":"foo3"}
[+4.0s] {"payload":"foo4"}
[+5.0s] {"payload":"foo5"}
Not verified: Cursor was not installed or run for this page. The error was not reproduced, the Settings > Network screen was not seen, and no corporate proxy or TLS-inspecting gateway was tested. Menu names are quoted from Cursor's pages as they read today.
Cause 1: Cursor's service is degraded
Cursor's help pages link to status.cursor.com as "Check system status". On 9 November 2026 that address redirected to status.x.ai, and its status API reported "Partially Degraded Service" with an open incident titled "Elevated errors for OpenAI model requests", listing the IDE among affected components. Whether such an incident produces this exact message was not verified, but check here before changing network settings. The incident note said other models were unaffected.
Cause 2: A proxy that breaks HTTP/2 streaming
Cursor's network help page states: "Cursor uses HTTP/2 for streaming responses. Some corporate proxies (like Zscaler) block HTTP/2." Its documented fix:
- Go to Cursor Settings > Network and click Run Diagnostics.
- In Cursor Settings > Network, set HTTP Compatibility Mode to HTTP/1.1.
- Restart Cursor.
The Network configuration page adds that Cursor "automatically falls back to HTTP/1.1 Server-Sent Events (SSE) mode" when HTTP/2 bidirectional streaming does not work. That page also marks some hosts "HTTP/2 only": Cursor Tab (api3.cursor.sh, api4.cursor.sh and the gcpp hosts) and codebase search (repo42.cursor.sh). Neither page says how those features behave in HTTP/1.1 mode.
One documented precedent: a staff-authored Cursor forum thread (Cursor forum, staff post, January 2026) describes HTTP/2 connections failing with SSLV3_ALERT_HANDSHAKE_FAILURE, recommends the same HTTP/1.1 setting as the workaround, and records a mitigation on 28 January 2026.
Cause 3: SSL inspection or a gateway buffering the stream
From the Network configuration page: when Cursor traffic passes through secure web gateways, SSL inspection or DLP, "it often causes timeouts, slowness, or errors when using Cursor's Agent capabilities." Cursor recommends disabling SSL inspection for:
.cursor.sh cursor-cdn.com, *.cursor-cdn.com marketplace.cursorapi.com authenticate.cursor.sh authenticator.cursor.sh *.cursorvm.com *.*.cursorvm.com cursor.com and *.cursor.com
Test it with the certificate check shown above. The docs say: "You should see Amazon RSA. If you see your proxy provider (like Zscaler), SSL inspection is active." Then run Cursor's streaming tests, copied from the same page (bash syntax):
# HTTP/1.1 streaming
echo -ne "\x0\x0\x0\x0\x11{\"payload\":\"foo\"}" | \
curl --http1.1 -No - -XPOST \
-H "Content-Type: application/connect+json" \
--data-binary @- \
https://api2.cursor.sh/aiserver.v1.HealthService/StreamSSE
# HTTP/2 bidirectional streaming
(for i in 1 2 3 4 5; do \
echo -ne "\x0\x0\x0\x0\x12{\"payload\":\"foo$i\"}"; \
sleep 1; \
done) | curl -No - -XPOST \
-H "Content-Type: application/connect+json" \
-T - \
https://api2.cursor.sh/aiserver.v1.HealthService/StreamBidi
Per the docs, output should arrive about once per second. If it all appears at once after 5 seconds, the proxy is buffering; for the second test that means it "doesn't support HTTP/2 bidirectional streaming". If inspection must stay on, the page says the proxy has to pass SSE without buffering and allow long-running connections without forced timeouts.
Cause 4: A firewall blocking Cursor's domains
The help page's allowlist, as shown today:
*.cursor.sh *.cursor-cdn.com *.cursorapi.com *.cursorvm.com and *.*.cursorvm.com cursor.com and *.cursor.com
For firewalls that cannot use wildcards, the Network configuration page lists hosts individually, including api2.cursor.sh ("Used for most API requests"), api5.cursor.sh and its agent.* subdomains (agent requests), api3.cursor.sh (Cursor Tab) and repo42.cursor.sh (codebase search). Sign-in uses additional hosts that Cursor lists on a separate sign-in domains page. Its checklist ends with: "Test from a machine outside your network to isolate network-specific issues."
Cause 5: VPN leftovers or a remote SSH session
The help page says Cursor "can inherit DNS settings from a previously active VPN." After disconnecting a VPN, fully restart Cursor (not just reload the window); if the problem persists, check that DNS has reverted, with scutil --dns on macOS or /etc/resolv.conf on Linux.
With Remote SSH, the help page says AI requests go from your local machine, not the remote host. If the SSH connection drops often, it suggests this in your SSH config, then restarting Cursor after reconnecting:
Host your-server ServerAliveInterval 60 ServerAliveCountMax 3
Still failing: send Cursor the Request ID
From Cursor's "Reporting a bug" page: open the relevant conversation in the Chat sidebar, click the context menu ("..." menu), select Copy Request ID, and share it on the forum or by email along with your Cursor version (Cursor > About Cursor). The page notes that connectivity issues can often be debugged with Privacy Mode enabled, and that Privacy Mode is per-request, so changing it later does not affect a request that already failed.
FAQ
Does this message always mean my network is the problem? No. In the staff post cited above (Cursor forum, staff post, 25 December 2025), a Cursor Community Support Engineer wrote that it is "very often an us problem, not a you problem", or something in the middle such as a misbehaving MCP server. If the status page and the curl checks are clean, send the Request ID.
Is it a rate limit? The same staff post says: "It is very unlikely to be rate limiting." That is one staff reply to one user, not documentation, and it was not independently verified.
Is a Request ID safe to post publicly? Cursor's "Reporting a bug" page says request IDs are "lookup keys with no value outside our systems, so you don't need to treat them as confidential."
I use Remote SSH. Which machine needs to reach Cursor? Your local one. Per Cursor's network help page, AI requests go from your local machine to Cursor's servers, not from the remote host.
Related
- Cursor "Authentication failed": 5 causes in diagnostic order
- Cursor "Rate limit exceeded": 4 causes in diagnostic order
- GitHub Copilot not showing in VS Code: 6 causes
Verified on 9 November 2026: fix steps and domain lists quoted from Cursor's help and docs pages fetched that day; curl checks run from one macOS network with no HTTP proxy (output shown above). The error wording is user-reported on Cursor's forum, and the error itself was not reproduced.