continuedev / continuedev/continue
connection error trying to hit a self-hosted openai API in JetBrains (Pycharm) plugin
Open
@sestinj is already working on this.
Since Mar 10, 2025.
ide:jetbrains
kind:bug
needs-triage
os:mac
- Dominant language
- TypeScript
- Stars
- 36k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:macOS 15.3.1
- Continue version: 1.0.2
- IDE version: JetBrains PyCharm 2024.3.3 pro edition
- Model: local model
- config:
{
"models": [
{
"title": "Titan Text G1 - Express",
"provider": "bedrock",
"model": "amazon.titan-text-express-v1",
"region": "us-west-2",
"profile": "24p"
},
{
"title": "Claude 3.5 Sonnet v2",
"provider": "bedrock",
"model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
"region": "us-west-2",
"profile": "24p"
},
{
"title": "MyAPI",
"provider": "openai",
"model": "gpt-4o",
"apiBase": "https://mydomain/v1",
"apiKey": "***",
"useLegacyCompletionsEndpoint": true
}
],
"experimental": {
"modelRoles": {
"inlineEdit": "Claude 3.5 Sonnet v2"
}
},
"embeddingsProvider": {
"title": "Embeddings Model",
"provider": "bedrock",
"model": "amazon.titan-embed-text-v2:0",
"region": "us-west-2",
"profile": "24p"
},
"contextProviders": [
{
"name": "code",
"params": {}
},
{
"name": "docs",
"params": {}
},
{
"name": "diff",
"params": {}
},
{
"name": "terminal",
"params": {}
},
{
"name": "problems",
"params": {}
},
{
"name": "folder",
"params": {}
},
{
"name": "codebase",
"params": {}
}
],
"slashCommands": [
{
"name": "share",
"description": "Export the current chat session to markdown"
},
{
"name": "cmd",
"description": "Generate a shell command"
},
{
"name": "commit",
"description": "Generate a git commit message"
}
],
"data": [],
"docs": [
{
"title": "PyTorch",
"startUrl": "https://pytorch.org/docs/stable/index.html"
},
{
"title": "Conda",
"startUrl": "https://docs.conda.io/en/latest/"
},
{
"title": "NumPy",
"startUrl": "https://numpy.org/doc/stable/"
},
{
"title": "Python",
"startUrl": "https://docs.python.org/3/"
},
{
"title": "Matplotlib",
"startUrl": "https://matplotlib.org/stable/"
},
{
"title": "Jupyter",
"startUrl": "https://docs.jupyter.org/en/latest/"
},
{
"title": "Pandas",
"startUrl": "https://pandas.pydata.org/docs/"
}
]
}
Description
connection error trying to hit a self-hosted openai API in JetBrains Pycharm. works on VSCode just fine.
To reproduce
- select hosted api for MyAPI for chat model
- type "hello"
- get error
Log output
Unable to send message: postIntellijMessage is undefined. jetbrains/isOSREnabled undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. jetbrains/isOSREnabled undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. getControlPlaneSessionInfo Object
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. getIdeSettings undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. config/listProfiles undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. getOpenFiles undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. config/getSerializedProfileInfo undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. jetbrains/getColors undefined
index.js:304 Attempt 0 failed. Retrying...
index.js:304 Unable to send message: postIntellijMessage is undefined. jetbrains/onLoad undefined
index.js:304 Attempt 0 failed. Retrying...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.