JudiniLabs / code-gpt-docs

Docusaurus page
https://code-gpt-docs.vercel.app
MIT License
553 stars 58 forks source link

Unable to connect to the extension services. Click here to check possible reasons. #268

Closed Mengzhiyaa closed 1 month ago

Mengzhiyaa commented 2 months ago

When I install codegpt on remote linux VSCode, it raise this error Unable to connect to the extension services. [Click here](vscode-webview://0a5bjoemc2tb2nnffe84gm1eihp5hh75dhncb6hg7f8j0nfnv4nf/index.html?id=367e90d6-7251-4019-8d7f-0e982306cf7a&origin=53b7c042-d9aa-41c7-83cc-12239b12678c&swVersion=4&extensionId=DanielSanMedium.dscodegpt&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&remoteAuthority=ssh-remote%2Bmaster&purpose=webviewView#) to check possible reasons. but in local vscode, it can be opened normally.

image
ignacorp commented 2 months ago

Same here

acetechnologist commented 1 month ago

same issue:(

xamelion commented 1 month ago

I really want to use the plugin. But it doesn't open in devcontainer

KnightKevin commented 1 month ago

me too

mbaltar commented 1 month ago

Same here. Actually, the problem happens even locally. Not only on devcontainers/remote linux

apro commented 1 month ago

Same problem: Linux Rocky 9, VSCode 1.89 Server seems to kind'a work: tcp 0 0 192.168.67.99:54112 0.0.0.0: LISTEN
tcp6 0 0 :::54113 :::
LISTEN
(ipv6 is disabled btw)

but do not listen on localhost.

logs from code: [2922766:0507/081227.672055:INFO:CONSOLE(656)] "%c ERR color: #f33 [Extension Host] Error: No open ports found in between 54112 and 54112 at /home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:475:3792 at /home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:471:2675 at I2 (/home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:471:6194) at D (/home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:471:6121) at /home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:471:5910 at /home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:475:3192 at Server.I (/home/apro/.vscode/extensions/danielsanmedium.dscodegpt-3.2.11/dist/extension.js:475:1673) at Object.onceWrapper (node:events:631:28) at Server.emit (node:events:517:28) at emitListeningNT (node:net:1851:10) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (656)

Mayorc1978 commented 1 month ago

I get the same problem if I "click" the link it asks to open the example.com URL, which obviously works.

If I try to signing in the top right corner of the extension tab the extension tries to connect to: http://localhost:54112/54113/login

But it doesn't seem to work: image

I must add that previously the sign in URL was: http://localhost:54112/login (which doesn't work anyway) Is there something messed up under the hood???

PilarHidalgo commented 1 month ago

@Mayorc1978 @apro @Mengzhiyaa In Linux the port must be able, the http://localhost:54112/54113/login works for me. Could you share the configuration of your server? Mine is in Virtual box 7.0, Linux 2.6 image

image

Mengzhiyaa commented 1 month ago

@PilarHidalgo Hello, thank you for your answer. I tried to install codegpt today and found that it can be opened normally on a remote Linux server, which may be due to an update of codegpt. My server is running Ubuntu 22.04.

PilarHidalgo commented 1 month ago

@Mengzhiyaa I made a procedure on WSL here: https://medium.com/p/881b91ba193e. Hope works for you