gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.48k stars 761 forks source link

Unable to login, make sure to login and keep your browser open... On Windows 11 #229

Closed neologyc closed 1 year ago

neologyc commented 1 year ago

Verify it's not a duplicate bug report

Verify troubleshooting guide is missing steps to solve this issue

Describe the Bug

Hello, I´m trying to setup Browser login for using GPT4 on Windows 11. I let setting "Chatgpt: Chromium Path" empty (as default) and tried changed it to Chrome, Edge, or even totally new instalation of Chromium. All posibilities with/without ". But still getting error after clicking on "Login" button in ChatGPT sidebar in vscode.

Errors are:

Unable to login, make sure to login and keep your browser open. Error Failed to launch the browser process! spawn C:\Users\Jarda\AppData\Local\Chromium\Application\chrome.exe ENOENT TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

Unable to login, make sure to login and keep your browser open. Error Failed to launch the browser process! spawn /usr/bin/google-chrome-stable ENOENT TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

etc - depending on what is set in the value.

Values, whichc didn´t work for me (for example): "chatgpt.chromiumPath": "" "chatgpt.chromiumPath": "C:\Users\Jarda\AppData\Local\Chromium\Application\chrome.exe"

API login works correctly

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

Yes, a lot changes, but I used "reset" of all possible chatgpt values, and got the same error

Additional context

Probably the problem is when I´m connected to Remote with plugin "Remote - SSH". The plugin Chatgpt says "This extension is enabled in the Remote Extension Host because it prefers to run there. Learn More" In this settings the browser don´t open. In case I use new workspace, which is not connectec to SSH, plugin ChatGPT works as a charm.

No response

gencay commented 1 year ago

Hi there @neologyc, in order to use the extension in remote mode, there are some conversations around it. Did you check this section of the readme here: https://github.com/gencay/vscode-chatgpt#run-on-linux-or-remote---ssh-workspace

Let me know if this doesn't help