Continue.dev Extension - Connection Error (Chat Mode Only)
Before submitting your bug report
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
* OS: macOS 14.2.1
* IDE: WebStorm 2024.1.7
* Continue.dev Extension Version: v0.0.88
* LM Studio version: 0.3.9
* Model deepseek-r1-distill-llama-8b
* config.json:
"models": [
{
"model": "deepseek-r1-distill-llama-8b",
"title": "deepseek-r1-distill-llama-8b",
"provider": "lmstudio"
}, {
"model": "hermes-3-llama-3.2-3b",
"title": "hermes-3-llama-3.2-3b",
"provider": "lmstudio"
}
],
Description
Hi Continue.dev team,
I'm encountering a persistent "Connection error" with the Continue.dev extension in WebStorm, but only when I'm in chat mode. The "Connection error" does not occur in edit mode; that functionality works as expected. I've attached a screenshot showing the chat mode error message.
To reproduce
- Open WebStorm 2024.1.7.
- Activate the Continue.dev extension (v0.0.88).
- Switch to the "Chat" mode within the Continue.dev extension.
- Attempt to use any feature within the chat mode. (e.g., Ask a question, request code generation, etc.)
- Observe the "Connection error".
Log output
[info] Starting Continue core...
[2025-02-15T08:16:18] [info] Starting Continue core...
[2025-02-15T08:16:18] Setup
[2025-02-15T08:16:18] [binary] Core started
[2025-02-15T08:16:18] Running migration: sqlite_modify_docs_columns_and_copy_to_config
[2025-02-15T08:16:18] Running migration: sqlite_delete_docs_with_no_embeddingsProviderId
[2025-02-15T08:16:18] Migration sqlite_modify_docs_columns_and_copy_to_config failed Error: SQLITE_ERROR: no such table: docs
[2025-02-15T08:16:18] Migration sqlite_delete_docs_with_no_embeddingsProviderId failed Error: SQLITE_ERROR: no such table: docs
[2025-02-15T08:16:18] Running migration: add_signature_column
[2025-02-15T08:16:18] Running migration: delete_duplicate_code_snippets
[2025-02-15T08:16:25] (node:36500) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `continue-binary --trace-warnings ...` to show where the warning was created)
[2025-02-15T08:16:28] Running migration: lancedb_sqlite_artifact_id_column
[2025-02-15T08:16:28] LanceDBIndex, skipping file:///Users/my_mac/Code/my_project/public/employees_template.xlsx: Error: did not chunk properly
[2025-02-15T08:16:33] error when indexing: Error: Failed to generate embeddings for 545 chunks with provider: A::all-MiniLM-L6-v2::500: Error: `local_files_only=true` or `env.allowRemoteModels=false` and file was not found locally at "/snapshot/continue/binary/models/all-MiniLM-L6-v2/tokenizer.json".
[2025-02-15T08:16:33] Indexing failed with error: Error: Failed to generate embeddings for 545 chunks with provider: A::all-MiniLM-L6-v2::500: Error: `local_files_only=true` or `env.allowRemoteModels=false` and file was not found locally at "/snapshot/continue/binary/models/all-MiniLM-L6-v2/tokenizer.json". lge.getEmbeddings, async lge.computeRows, async lge.update, async qbA.indexFiles, async qbA.refreshDirs, async tBA.refreshCodebaseIndex
[2025-02-15T08:16:41] Error: Connection error.
[2025-02-15T08:16:41] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:17:20] Error: Connection error.
[2025-02-15T08:17:20] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:17:47] Error retrieving from FTS: Error: SQLITE_ERROR: no such table: fts
[2025-02-15T08:17:48] Error: Connection error.
[2025-02-15T08:17:48] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:18:23] Error: Connection error.
[2025-02-15T08:18:23] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:18:59] Error: Connection error.
[2025-02-15T08:18:59] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:19:21] Error: Connection error.
[2025-02-15T08:19:21] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:21:35] Error: Connection error.
[2025-02-15T08:21:35] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:21:38] Error: Connection error.
[2025-02-15T08:21:38] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:21:41] Error: Connection error.
[2025-02-15T08:21:41] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:21:44] Error: Connection error.
[2025-02-15T08:21:44] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:22:05] Error: Connection error.
[2025-02-15T08:22:05] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:23:05] Error: Connection error.
[2025-02-15T08:23:05] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:24:00] Error: Connection error.
[2025-02-15T08:24:00] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:24:10] Error: Connection error.
[2025-02-15T08:24:10] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:24:53] Error: Connection error.
[2025-02-15T08:24:53] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:27:56] Error: Connection error.
[2025-02-15T08:27:56] Error running handler for "llm/streamChat": Error: Connection error.
[2025-02-15T08:30:32] Error: Connection error.
[2025-02-15T08:30:32] Error running handler for "llm/streamChat": Error: Connection error.
Same issue on Pycharm with this config:
"models": [
{
"apiBase": "http://localhost:1234/v1/",
"title": "Qwen2.5 Coder",
"model": "qwen2.5-coder-14b-instruct",
"provider": "lmstudio"
},
{
"apiBase": "http://localhost:1234/v1/",
"model": "AUTODETECT",
"title": "Autodetect",
"provider": "lmstudio"
}
Tried various models with no luck.
This issue does not occur in version 0.0.83 of the Continue.dev extension. @direwolfie
Thanks for sharing this—so that I can better reproduce, would either of you be able to share a/the version of LMStudio that this happens with?
Thanks for sharing this—so that I can better reproduce, would either of you be able to share a/the version of LMStudio that this happens with?
I'm running into this issue with LM Studio version 0.3.9. Let me know if there's any other information I can provide to help with debugging.
Change to your computer ip if you have use vpn or other change ip
"http://127.0.0.1:1234/v1/
Change to your computer ip if you have use vpn or other change ip
"http://127.0.0.1:1234/v1/
Thanks for the suggestion! I appreciate it.
I've tried setting the IP to my computer's IP address (both with and without the port and path: http://127.0.0.1:1234/v1/), but unfortunately, I'm still getting the same "Connection error" in chat mode.
The edit mode continues to work fine, Is there anything else I can try?
Just updated to latest release 0.0.92 with LMStudio 0.3.10 and this issue is still present when using continue.dev with Rider on Windows (seems to work with VSCode).
When using the chat it throws a connection error as shown in the OP.
Most recent working version at the moment is 0.0.83.
Using version: Continue 1.0.2 LMStudio 0.3.11
PHPStorm 2024.3.2.1 MacOS 15.3.1
No luck running locally.
{
"model": "AUTODETECT",
"title": "Autodetect",
"provider": "lmstudio"
}
Does not work, it can find the models but not use it.
Continue 1.0.2 LM Studio 0.3.13 Rider 2024.3.6
Does not work, "Connection Error" everytime I try. Tried this, doesn't work:
models:
- name: LM Studio> Qwen2.5-Coder-7B-Instruct
provider: lmstudio
model: qwen2.5-coder-7b-instruct
apiBase: http://localhost:1234/v1/
roles:
- chat
- edit
- apply
Chrome was able to get model list through http://localhost:1234/v1/models so no problem here :(
same thing here. IntelliJ 2024.2.x and 2024.3.x Continue plugin 1.0.8 LM Studio 0.3.13 and 0.3.14
cURL request works, Continue autocomplete works - so it's gotta be an issue with Continue chat
[2025-03-28T12:24:41] Error: Connection error.
[2025-03-28T12:24:41] Error running handler for "llm/streamChat": Error: Connection error.
also chat mode connection error Modify the apiBase with http://localhost:1234/v1/ => http://127.0.0.1:1234/v1/ in the config.json file then connection success
I had the same thing and found that I had another plugin for AI coding already installed. I removed it and then it works both with localhost and 127.0.0.1
I can also confirm that by changing the localhost to 127.0.0.1 it works, even though the model list was working using localhost on pycharm.
[2025-03-28T12:24:41] Error: Connection error. [2025-03-28T12:24:41] Error running handler for "llm/streamChat": Error: Connection error.also chat mode connection error Modify the apiBase with http://localhost:1234/v1/ => http://127.0.0.1:1234/v1/ in the config.json file then connection success
it's works for me thanks you
[2025-03-28T12:24:41] Error: Connection error. [2025-03-28T12:24:41] Error running handler for "llm/streamChat": Error: Connection error.also chat mode connection error Modify the apiBase with http://localhost:1234/v1/ => http://127.0.0.1:1234/v1/ in the config.json file then connection success
Fixed my issue as well. Thanks!
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!