gencay / vscode-chatgpt

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

Error: kw Protocol error (Runtime.callFunctionOn): Argument should belong to the same JavaScript world as target object #79

Closed ampx-mg closed 1 year ago

ampx-mg commented 1 year ago

Hi, I am trying to log into this extension using:

Using google auth to log in and I am getting this error message:

Unable to login. Make sure to login and keep your browser open. This error may also be due to OpenAI servers down or that it's throttling the requests. Error: kw Protocol error (Runtime.callFunctionOn): Argument should belong to the same JavaScript world as target object
ruslankonev commented 1 year ago

same error macos

ncesar commented 1 year ago

Can you try using OpenAPI authentication, which uses only email and password and let us know if it works?

Maybe something has changed on the login flow and we need to update the puppeteer code.

gencay commented 1 year ago

You could use the OpenAI API Key method with ChatGPT conversational support for better reliability if you are facing browser reated issues. Please check out Readme for more details: https://github.com/gencay/vscode-chatgpt#api-key-setup

gencay commented 1 year ago

@ruslankonev @ncesar @ampx-mg I fixed this in v3.9.5. You can upgrade your extensions to use Browser Auto-login flow without any login issues. Similar to https://github.com/gencay/vscode-chatgpt/issues/194