Skip to content

Generic "connection error" -- Debug steps? #6991

@bstrdsmkr

Description

@bstrdsmkr

App Version

3.25.11 & 0.0.6534

API Provider

OpenAI Compatible

Model Used

gpt-oss-12b, llama-4-maverick, llama-3.3-70b

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

  1. Fresh VSCode profile, install only Roo Code (or nightly) and Network Logger
  2. Open Roo Code
  3. Edit default API configuration
  4. Select OpenAI Compatible
  5. Enter endpoint (verified correct)
  6. Enter API key (verified correct)
  7. (Models populate)
  8. Select model (tried all 3 listed above)
  9. Save
  10. Done
  11. Send "hello" in chat
  12. Generic "Connection error." message:
Image

💥 Outcome Summary

Network Logger does NOT show a request to the /models endpoint, but the models populate and I can see the request in the server logs.

Network Logger DOES show a request to the /api/chat/completions endpoint, which does NOT show up in the server logs.

Same endpoint/key/models work in Cline.

I'm using an ssh-based socks5 proxy via a PAC file, launching VSCode with --proxy-pac-url=http://localhost:8000/socks5-ssh.pac

Cline works fully and Roo's model discovery works so I believe this part is fine unless the actual chat completions calls use a different fetch method than the models discovery which doesn't respect VSCode's patched fetch which respects the PAC proxy file? I've also tried setting the proxy in VSCode's http.proxy settings, but this doesn't seem to change anything.

How can I debug this further? Is there a debug setting or etc I can turn on to get more info?

I collected a .har file for the network activity, but Github doesn't allow it as an attachment

📄 Relevant Logs or Errors (Optional)

Roo Code Output:

roo-cline extension activated - {"publisher":"RooVeterinaryInc","name":"roo-cline","version":"3.25.11","outputChannel":"Roo-Code"}
Skipping migration of cline_custom_modes.json to custom_modes.json: old file not found
Skipping migration of cline_mcp_settings.json to mcp_settings.json: old file not found
No custom_modes.json found, skipping YAML migration
[auth] Transitioned to logged-out state
[MDM] No MDM configuration found
ClineProvider instantiated
[AutoImport] No auto-import settings path specified, skipping auto-import
Resolving webview view
Webview view resolved
[subtasks] parent task a1c8f326-2bec-412a-81b1-d63b7822c0eb.0a9e6908 instantiated
[Task#getCheckpointService] workspace folder not found, disabling checkpoints
[subtasks] parent task eb061a0d-619d-43d4-8632-fdd70007189f.eff5055f instantiated
[Task#getCheckpointService] workspace folder not found, disabling checkpoints
[subtasks] parent task 8936a54b-3cc2-4aed-8cd0-63dc94df3a04.0fc5407a instantiated
[Task#getCheckpointService] workspace folder not found, disabling checkpoints

Developer Tools console

log.ts:450  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vsliveshare.vsliveshare' wants API proposal 'notebookCellExecutionState' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ log.ts:450
log.ts:450  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.gather' wants API proposal 'notebookCellExecutionState' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ log.ts:450
log.ts:450  WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.vscode-pylance' wants API proposal 'mcpConfigurationProvider' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ log.ts:450
log.ts:440  INFO Started local extension host with pid 482781.
log.ts:440  INFO Settings Sync: Account status changed from uninitialized to unavailable
console.ts:137 [Extension Host] Loaded translations for languages: ca, de, en, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW
console.ts:137 [Extension Host] [[email protected]] injecting env (1) from /home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/.env
log.ts:460   ERR [Extension Host] (node:482781) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
error @ log.ts:460
console.ts:137 [Extension Host] (node:482781) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
Ims @ console.ts:137
console.ts:137 [Extension Host] [auth] Transitioned to logged-out state
console.ts:137 [Extension Host] [MDM] No MDM configuration found
console.ts:137 [Extension Host] ClineProvider instantiated
console.ts:137 [Extension Host] McpHub: Client registered. Ref count: 1
console.ts:137 [Extension Host] [8:32:03 AM] [fetch] [GET] → https://default.exp-tas.com/vscode/ab (Network Logger (internal))
log.ts:440  INFO [perf] Render performance baseline is 15ms
webviewElement.ts:487 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:487
P @ overlayWebview.ts:250
claim @ overlayWebview.ts:136
oc @ webviewViewPane.ts:161
(anonymous) @ webviewViewPane.ts:92
C @ event.ts:1219
D @ event.ts:1230
fire @ event.ts:1254
setVisible @ viewPane.ts:409
(anonymous) @ viewPaneContainer.ts:675
setVisible @ viewPaneContainer.ts:675
setVisible @ panecomposite.ts:53
Fb @ compositePart.ts:282
Fb @ paneCompositePart.ts:235
Db @ compositePart.ts:159
Cb @ compositePart.ts:123
Cc @ paneCompositePart.ts:539
openPaneComposite @ paneCompositePart.ts:507
run @ paneCompositeBar.ts:836
u @ actions.ts:194
run @ actions.ts:185
onClick @ actionViewItems.ts:173
(anonymous) @ actionViewItems.ts:153
console.ts:137 [Extension Host] Resolving webview view
console.ts:137 [Extension Host] Webview view resolved
 [Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
(anonymous) @ index.html:1062
index.js:200 Dynamically loaded translations: (18) ['ca', 'de', 'en', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'nl', 'pl', 'pt-BR', 'ru', 'tr', 'vi', 'zh-CN', 'zh-TW']
index.js:270 Initializing CSP-compatible source map support for production build
index.js:270 Source map debugging utilities exposed on window object
index.js:3362 App initialized with source map support
resourceLoading.ts:82 tl: Unable to read file '/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.map.json' (Error: Unable to resolve nonexistent file '/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.map.json')
    at h1t.G (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3605:65912)
    at h1t.F (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3605:65737)
    at async cgn (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3896:11240)
    at async Lxt.xb (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3896:22007)
resourceLoading.ts:82 tl: Unable to read file '/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.sourcemap' (Error: Unable to resolve nonexistent file '/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.sourcemap')
    at h1t.G (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3605:65912)
    at h1t.F (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3605:65737)
    at async cgn (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3896:11240)
    at async Lxt.xb (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:3896:22007)
mermaid-bundle.js:2  GET vscode-webview://0jpcn11797q44rfnmib6lq9bto6mtev2k54e8b24mugo0nsgjguu/assets/chunk-pO14Kfwb.js net::ERR_ACCESS_DENIED
(anonymous) @ mermaid-bundle.js:2
dr @ mermaid-bundle.js:2
(anonymous) @ index.js:1813
tk @ index.js:41
Im @ index.js:41
VD @ index.js:41
ld @ index.js:39
qpt @ index.js:41
Uu @ index.js:41
WD @ index.js:41
P @ index.js:26
K @ index.js:26
mermaid-bundle.js:2  GET vscode-webview://0jpcn11797q44rfnmib6lq9bto6mtev2k54e8b24mugo0nsgjguu/assets/mermaid-bundle.js net::ERR_ACCESS_DENIED
(anonymous) @ mermaid-bundle.js:2
dr @ mermaid-bundle.js:2
(anonymous) @ index.js:1813
tk @ index.js:41
Im @ index.js:41
VD @ index.js:41
ld @ index.js:39
qpt @ index.js:41
Uu @ index.js:41
WD @ index.js:41
P @ index.js:26
K @ index.js:26
index.js:270  GET https://file+.vscode-resource.vscode-cdn.net/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.map.json 404 (Not Found)
SSt @ index.js:270
(anonymous) @ index.js:3362
tk @ index.js:41
Im @ index.js:41
(anonymous) @ index.js:41
P @ index.js:26
K @ index.js:26
index.js:270  GET https://file+.vscode-resource.vscode-cdn.net/home/zp0/.vscode/extensions/rooveterinaryinc.roo-cline-3.25.11/webview-ui/build/assets/index.sourcemap 404 (Not Found)
SSt @ index.js:270
(anonymous) @ index.js:3362
tk @ index.js:41
Im @ index.js:41
(anonymous) @ index.js:41
P @ index.js:26
K @ index.js:26
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
console.ts:137 [Extension Host] [8:32:32 AM] [fetch] [POST] → https://us.i.posthog.com/batch/ (Network Logger (internal))
console.ts:137 [Extension Host] [8:33:12 AM] [fetch] [GET] → https://default.exp-tas.com/vscode/ab (Network Logger (internal))
dom.ts:144 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
qHi @ dom.ts:144
K @ dom.ts:165
Q @ selectBoxCustom.ts:241
Az @ selectBoxCustom.ts:143
dN @ selectBox.ts:92
phe @ actionViewItems.ts:447
e4e @ menuEntryActionViewItem.ts:582
o @ instantiationService.ts:162
createInstance @ instantiationService.ts:128
cc @ menuEntryActionViewItem.ts:611
createActionViewItem @ viewPane.ts:711
actionViewItemProvider @ viewPane.ts:453
actionViewItemProvider @ toolbar.ts:111
(anonymous) @ actionbar.ts:363
push @ actionbar.ts:354
(anonymous) @ toolbar.ts:207
setActions @ toolbar.ts:206
setActions @ toolbar.ts:187
$b @ viewPane.ts:678
bc @ viewPane.ts:692
(anonymous) @ viewPane.ts:392
C @ event.ts:1219
fire @ event.ts:1250
(anonymous) @ viewMenuActions.ts:32
C @ event.ts:1219
fire @ event.ts:1250
resume @ event.ts:1399
(anonymous) @ event.ts:1438
dom.ts:144 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
qHi @ dom.ts:144
K @ dom.ts:165
Q @ selectBoxCustom.ts:241
Az @ selectBoxCustom.ts:143
dN @ selectBox.ts:92
phe @ actionViewItems.ts:447
e4e @ menuEntryActionViewItem.ts:582
o @ instantiationService.ts:162
createInstance @ instantiationService.ts:128
cc @ menuEntryActionViewItem.ts:611
createActionViewItem @ viewPane.ts:711
getActionViewItem @ viewPaneContainer.ts:588
getActionViewItem @ panecomposite.ts:145
Qb @ compositePart.ts:466
actionViewItemProvider @ compositePart.ts:408
actionViewItemProvider @ toolbar.ts:111
(anonymous) @ actionbar.ts:363
push @ actionbar.ts:354
(anonymous) @ toolbar.ts:207
setActions @ toolbar.ts:206
setActions @ toolbar.ts:187
(anonymous) @ compositePart.ts:352
Gb @ compositePart.ts:313
Gb @ paneCompositePart.ts:499
(anonymous) @ compositePart.ts:202
C @ event.ts:1219
fire @ event.ts:1250
R @ composite.ts:222
(anonymous) @ viewsService.ts:665
(anonymous) @ event.ts:182
C @ event.ts:1219
D @ event.ts:1230
fire @ event.ts:1254
nb @ viewPaneContainer.ts:683
(anonymous) @ viewPaneContainer.ts:847
C @ event.ts:1219
fire @ event.ts:1250
bc @ viewPane.ts:693
(anonymous) @ viewPane.ts:392
C @ event.ts:1219
fire @ event.ts:1250
(anonymous) @ viewMenuActions.ts:32
C @ event.ts:1219
fire @ event.ts:1250
resume @ event.ts:1399
(anonymous) @ event.ts:1438
dom.ts:144 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
qHi @ dom.ts:144
K @ dom.ts:165
Q @ selectBoxCustom.ts:241
Az @ selectBoxCustom.ts:143
dN @ selectBox.ts:92
phe @ actionViewItems.ts:447
e4e @ menuEntryActionViewItem.ts:582
o @ instantiationService.ts:162
createInstance @ instantiationService.ts:128
cc @ menuEntryActionViewItem.ts:611
createActionViewItem @ viewPane.ts:711
getActionViewItem @ viewPaneContainer.ts:588
getActionViewItem @ panecomposite.ts:145
Qb @ compositePart.ts:466
actionViewItemProvider @ compositePart.ts:408
actionViewItemProvider @ toolbar.ts:111
(anonymous) @ actionbar.ts:363
push @ actionbar.ts:354
(anonymous) @ toolbar.ts:207
setActions @ toolbar.ts:206
setActions @ toolbar.ts:187
(anonymous) @ compositePart.ts:352
Gb @ compositePart.ts:313
Gb @ paneCompositePart.ts:499
(anonymous) @ compositePart.ts:202
C @ event.ts:1219
fire @ event.ts:1250
R @ composite.ts:222
(anonymous) @ panecomposite.ts:47
C @ event.ts:1219
D @ event.ts:1230
fire @ event.ts:1254
nb @ viewPaneContainer.ts:683
(anonymous) @ viewPaneContainer.ts:847
C @ event.ts:1219
fire @ event.ts:1250
bc @ viewPane.ts:693
(anonymous) @ viewPane.ts:392
C @ event.ts:1219
fire @ event.ts:1250
(anonymous) @ viewMenuActions.ts:32
C @ event.ts:1219
fire @ event.ts:1250
resume @ event.ts:1399
(anonymous) @ event.ts:1438
console.ts:137 [Extension Host] [subtasks] adding task a1c8f326-2bec-412a-81b1-d63b7822c0eb.0a9e6908 to stack
console.ts:137 [Extension Host] [subtasks] parent task a1c8f326-2bec-412a-81b1-d63b7822c0eb.0a9e6908 instantiated
console.ts:137 [Extension Host] [subtasks] task a1c8f326-2bec-412a-81b1-d63b7822c0eb.0a9e6908 starting
console.ts:137 [Extension Host] [Task#getCheckpointService] initializing checkpoints service
console.ts:137 [Extension Host] [Task#getCheckpointService] workspace folder not found, disabling checkpoints
console.ts:137 [Extension Host] [Task#getCheckpointService] workspace folder not found, disabling checkpoints
console.ts:137 [Extension Host] [8:33:22 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
console.ts:137 [Extension Host] [8:33:22 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
console.ts:137 [Extension Host] [8:33:23 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
console.ts:137 [Extension Host] [Task#a1c8f326-2bec-412a-81b1-d63b7822c0eb] pWaitFor askResponse(api_req_failed) -> blocking
console.ts:137 [Extension Host] [8:33:32 AM] [fetch] [POST] → https://us.i.posthog.com/batch/ (Network Logger (internal))

Network Logger output

[8:32:03 AM] [fetch] [GET] → https://default.exp-tas.com/vscode/ab (Network Logger (internal))
[8:32:32 AM] [fetch] [POST] → https://us.i.posthog.com/batch/ (Network Logger (internal))
[8:33:12 AM] [fetch] [GET] → https://default.exp-tas.com/vscode/ab (Network Logger (internal))
[8:33:22 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
[8:33:22 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
[8:33:23 AM] [fetch] [POST] → https://[REDACTED]/api/chat/completions (Network Logger (internal))
[8:33:32 AM] [fetch] [POST] → https://us.i.posthog.com/batch/ (Network Logger (internal))

PAC file

function FindProxyForURL(url, host) {
    // Direct all traffic to a specific domain through SOCKS5h
    if (shExpMatch(host, "*.[REDACTED]")) {
        return "SOCKS5 localhost:1080"; // Replace with your SOCKS5h proxy IP and port
    }
    // Default: Direct connection for all other traffic
    return "DIRECT";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingsupportNot verified as bug, currently just a support request

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions