cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Connection failed (Ctrl-K/inline)

Open thelazydogsback opened this issue 1 year ago • 7 comments

Brand new user - still in Pro trial period.

Sidebar chat (ctrl-L) works fine -- inline chat (ctrl-K) results in "Connection Failed". Using default model settings and no personal accounts/keys.

Windows 11 Business Version: 0.40.1 VSCode Version: 1.91.1 Commit: 58b91712431381a1b75817cd3437cee35dddcb30 Date: 2024-08-24T02:52:24.035Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

thelazydogsback avatar Aug 27 '24 18:08 thelazydogsback

Same issue with 0.40.3

thelazydogsback avatar Sep 03 '24 19:09 thelazydogsback

I wanted to share a solution I found.

My company environment: Uses a separate network.

Since I heard Cursor uses HTTP/2, I suspected this might be the issue.

Disabling HTTP/2 in the settings resolved the problem and made the previously non-working code functional.

fullth avatar Sep 05 '24 09:09 fullth

I wanted to share a solution I found.我想分享我找到的解决方案。

My company environment: 我公司环境: Uses a separate network. 使用单独的网络。

Since I heard Cursor uses HTTP/2, I suspected this might be the issue.由于我听说 Cursor 使用 HTTP/2,我怀疑这可能是问题所在。

Disabling HTTP/2 in the settings resolved the problem and made the previously non-working code functional.在设置中禁用 HTTP/2 解决了问题,并使之前无法工作的代码正常工作。

how to disable HTTP/2. Can u teach me?

youjunxiaji avatar Sep 11 '24 15:09 youjunxiaji

Found 'Disable Http2' in IDE settings by searching 'HTTP'.

Did it work for you too?

image

fullth avatar Sep 12 '24 00:09 fullth

Found 'Disable Http2' in IDE settings by searching 'HTTP'.

Did it work for you too?

image

thank u very much. it worked and i have another problem. why this function is not worked in SSH image

youjunxiaji avatar Sep 12 '24 01:09 youjunxiaji

I'm experiencing the same error.

But if you retry and then restart your IDE, the codebase search actually works fine.

Try this:

  1. Use Command + L to enter the interactive chat mode in your code editor
  2. Type in your question
  3. Hit Command + Enter

And then plase share ur result.

fullth avatar Sep 12 '24 01:09 fullth

I'm experiencing the same error.

But if you retry and then restart your IDE, the codebase search actually works fine.

Try this:

  1. Use Command + L to enter the interactive chat mode in your code editor
  2. Type in your question
  3. Hit Command + Enter

And then plase share ur result.

i know how to fix it. i use clash in linux and it fixed. image

youjunxiaji avatar Sep 12 '24 02:09 youjunxiaji

Found 'Disable Http2' in IDE settings by searching 'HTTP'.

Did it work for you too?

image

that's work for me ,thanks

JiYueBo666 avatar Sep 23 '24 02:09 JiYueBo666

image

eatcosmos avatar Oct 23 '24 11:10 eatcosmos