I consistently get this error with claude 4.5 sonnet when the context window exceeds 185k tokens

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

this is a bug that i have been getting consistently for the last 2 weeks

Steps to Reproduce

just have conversation of more than 185k tokens…

Expected Behavior

the request should work fine, but it does not.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Latest build cursor 2.1

For AI issues: which model did you use?

sonnet 4.5

For AI issues: add Request ID with privacy disabled

Request ID: ffb93608-525d-4916-82bf-0d9d6f1b3a5a
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:false}
ConnectError: [unavailable] Error
at RZc.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6330:408452)
at GPo._doInvokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7180:11314)
at GPo._invokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7180:11056)
at GPo._receiveRequest (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7180:9818)
at GPo._receiveOneMessage (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7180:8635)
at bPt.value (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7180:6727)
at _e._deliver (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Qmt.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6315:12156)
at MessagePort. (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:8972:18439)

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. The 185k token threshold is interesting since it’s close to Claude’s standard 200k context window limit. There are a few things you can try:

Quick diagnostics:

  • Network diagnostics: Cursor Settings → Network → Run Diagnostics (please share the results)
  • Try a new chat: sometimes this helps with connectivity issues

Questions to help debug:

  • Are you using Cursor’s subscription or your own API key (Anthropic direct / AWS Bedrock / other)?
  • Does the error happen with shorter conversations or different models?
  • Are you on a VPN or corporate network?

Let me know the diagnostic results and how your API is set up.

I am using Max Mode and my network diagnostics run all successfully on my end on http 2/1.1 and http 1 .. and i am using cursor billing.. not an external API … it happens with long conversations of many messages..

1 Like

Thanks for the extra info. Could you please confirm that the request ID was captured with Privacy Mode disabled? This is important so engineering can investigate the issue.

How to get a valid request ID:

  • Cursor Settings → General → turn off Privacy Mode
  • Reproduce the error in a new chat
  • Chat menu (top right) → Copy Request ID

Also, please share:

  • Console logs: Help → Toggle Developer Tools → Console tab → take a screenshot of any errors when the issue happens again

The consistent 185k token threshold definitely needs a closer look.

1 Like

i had read the guidelines.. that log was created with share data enabled

1 Like

Request ID: fb740507-b9d7-40f0-b2f2-e05117ac6998
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:false}
ConnectError: [unavailable] Error
at m3c.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6330:434848)
at qRo._doInvokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7241:11314)
at qRo._invokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7241:11056)
at qRo._receiveRequest (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7241:9818)
at qRo._receiveOneMessage (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7241:8635)
at jRt.value (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7241:6727)
at ke._deliver (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ke.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Cgt.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6315:12156)
at MessagePort. (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9033:18439) .. one more for your reference

@deanrie @staff ..could someone please help

bd0d3f1d-8a64-42dc-b5ae-f582b34bdbb5 .. one more request ID for your reference… i paid 200 USD for your ULTRA plan only to not be able to have a single long context conversation using 4.5 sonnet ,.. this one has a chat context of 224k tokens..

1 Like

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