Coder Social home page Coder Social logo

Comments (22)

gencay avatar gencay commented on July 19, 2024 5

Hi - yes, there have been multiple changes on the openai side. I am working on a resolution

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024 3

Update: ChatGPT servers are completely down right now that blocks development progress. I will update again if/when I find a resolution for our extension. Thanks all for the patience!

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024 3

Mitigation in place: Add your session cookies and userAgent manually. You can grab these from session cookies cf_clearance and __Secure-next-auth.session-token + run this in console to get your User Agent: navigator.userAgent.

I'm working on an auto-login flow which I mentioned in my earlier message. This will be much neater than refreshing those cookies manually. The v1.7.2 now works when you provide session-token, cf_clearance and userAgent variables.
image

from vscode-chatgpt.

gregid avatar gregid commented on July 19, 2024 3
Run the following command in Console to find your user agent: navigator.userAgent. Enter the content of this value when prompted by the extension.

I would change it to:

Run the following command in (web browser) Console to find your user agent: navigator.userAgent. Enter the content of this value when prompted by the extension (no single or double quotes).
  • The first part (console) got me confused for a moment :)
  • The quotes - only second time after I avoided quotes in copying and pasting it worked - not sure if just a fluke or one should exclude these quotes.

from vscode-chatgpt.

curtisreynolds57 avatar curtisreynolds57 commented on July 19, 2024 2

Yeah, even with the manual login, it's still giving me 403 forbidden.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024 2

I've been away on vacation for a few weeks, and I updated the extension to utilize the browser for ChatGPT queries. Make sure to keep the Chrome browser open after successful login (previously it was closing automatically causing 429 for subsequent questions). Whenever you restart your vs-code or close the Chrome instance please make sure to log-in again to keep an active ChatGPT connection. The extension will use the browser behind the scenes for your queries.

Since v2 will resolve this issue, I am closing it. Please update to latest on marketplace. Thanks for all the engagement and patience.

fyi @Noppey @gregid @Joey0x646576 @GitHdu

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024 1

The issues seem to be happening for some users of the downstream API wrapper we are using. There is an active discussion here: transitive-bullshit/agentic#96 (comment). Some people reported that getting the required tokens and user-agent using a different browser than Chrome helped them bypass the 403 issues.

from vscode-chatgpt.

gregid avatar gregid commented on July 19, 2024

I started getting 403 Forbidden yesterday evening - I wondered if anyone else is having similar problem. I assumed OpenAI may have throtthled access from outside of their web ui.
I didn't have ServiceWorker error though (just 403).

from vscode-chatgpt.

xichen-de avatar xichen-de commented on July 19, 2024

I also started getting 403 Forbidden today. The problem persists even after deleting the session. Looks like OpenAI is restricting access.

from vscode-chatgpt.

Joey0x646576 avatar Joey0x646576 commented on July 19, 2024

According to the creator of chatgpt-api they added additional cloudflare protection.

To bypass this you need two additional properties; cf_clearance and user-agent. While this works, it's only available for a limited time, before you need to refresh your cf_clearance token.

This package is not updated with the latest chatgpt-api, but if you update the dependencies and build it yourself it will still function.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

Update: Hang tight, the VSCode marketplace package seems to not include puppeteer built-in chromium. Thus there are run-time errors in the extension. WIP

Hi everybody,

I've a fix for the recent 403 issue and it's being rolled out right now. Please watch out the version 1.7.1 on marketplace 🎉

The new workflow logs you in automatically without needing to copy paste the cookies onto the extension:

  • Enter your email address
  • Enter your password (We don't store anything, all personal information remains locally on your vs-code)

Let the login flow automatically run:

  • It'll open a new chrome instance and use the credentials you provided to automatically login and grab the required fields from your cookie.

Since OpenAI servers are experiencing issues, please expect intermittent login failures / outage messages on openai website during auto-login flow.

This is the first attempt to overcome the 403 errors. Let me know if you face issues. I will keep the Issue open until we are good with the current solution.

from vscode-chatgpt.

raifpy avatar raifpy commented on July 19, 2024

What about OAuth?

from vscode-chatgpt.

GitHdu avatar GitHdu commented on July 19, 2024

Update: Hang tight, the VSCode marketplace package seems to not include puppeteer built-in chromium. Thus there are run-time errors in the extension. WIP

Hi everybody,

I've a fix for the recent 403 issue and it's being rolled out right now. Please watch out the version 1.7.1 on marketplace 🎉

The new workflow logs you in automatically without needing to copy paste the cookies onto the extension:

  • Enter your email address
  • Enter your password (We don't store anything, all personal information remains locally on your vs-code)

Let the login flow automatically run:

  • It'll open a new chrome instance and use the credentials you provided to automatically login and grab the required fields from your cookie.

Since OpenAI servers are experiencing issues, please expect intermittent login failures / outage messages on openai website during auto-login flow.

This is the first attempt to overcome the 403 errors. Let me know if you face issues. I will keep the Issue open until we are good with the current solution.

still getting 403 forbidden

from vscode-chatgpt.

curtisreynolds57 avatar curtisreynolds57 commented on July 19, 2024

Update: Hang tight, the VSCode marketplace package seems to not include puppeteer built-in chromium. Thus there are run-time errors in the extension. WIP
Hi everybody,
I've a fix for the recent 403 issue and it's being rolled out right now. Please watch out the version 1.7.1 on marketplace 🎉
The new workflow logs you in automatically without needing to copy paste the cookies onto the extension:

  • Enter your email address
  • Enter your password (We don't store anything, all personal information remains locally on your vs-code)

Let the login flow automatically run:

  • It'll open a new chrome instance and use the credentials you provided to automatically login and grab the required fields from your cookie.

Since OpenAI servers are experiencing issues, please expect intermittent login failures / outage messages on openai website during auto-login flow.
This is the first attempt to overcome the 403 errors. Let me know if you face issues. I will keep the Issue open until we are good with the current solution.

still getting 403 forbidden

I believe he hasn't released the fix, yet.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

I did release the fix and the new flow that requires session token, clearance token and user agent. Check the Readme.md for getting those.

from vscode-chatgpt.

Noppey avatar Noppey commented on July 19, 2024

Still 403 unfortunately.
None of the restrictions that are mentioned in that comment are applicable.

Tried with Edge:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46

Tried with Chrome and Brave:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Tried with node 18 and 19. No proxy, no other fancy stuff.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

Hello everybody,

I released a new version that supports automated authentication 🚀

Check out the release notes and the Readme on how to enable this setting.
image

This is still an experimental setting, thus not a default. If y'all could try out the new feature it'd be great!

Once I get enough confirmation, I will make this the default way to use the extension.

from vscode-chatgpt.

curtisreynolds57 avatar curtisreynolds57 commented on July 19, 2024

Hello everybody,

I released a new version that supports automated authentication 🚀

Check out the release notes and the Readme on how to enable this setting. image

This is still an experimental setting, thus not a default. If y'all could try out the new feature it'd be great!

Once I get enough confirmation, I will make this the default way to use the extension.

The servers are down right now, but I was testing this out earlier. It said something along the lines of "there's no field for #username." I'll see if I can replicate it when the servers go back up, but it seems puppeteer doesn't know how to input the username

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

Yes, servers are occasionally down today.

I am working on a zero-config setup. The extension will open chrome and will let you login as usual. Once login flow is complete, the extension will then grab the tokens automatically for you and close the chrome.

This way you won't need to provide any usernanme, password nor chrome path(it will pick up from default chrome installation path, with an option to override).

Zero config on the way!

from vscode-chatgpt.

curtisreynolds57 avatar curtisreynolds57 commented on July 19, 2024

I see that. I'm still getting 403 forbidden, even from the auto login. I have looked at all of the requirements, such as updating Node js, not opening the client while trying to connect, etc.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

The Zero-Config setup is rolled out with v1.8.3. On this version you have the option to have automatic authentication using puppeteer. If you haven't used it yet, Clear your session and run a prompt; it will automatically open Chrome and you should login as usual. Once you land on chat page, the browser will be automatically closed and you will be authenticated using the tokens off of that session.

Though there are still 403 issues with OpenAI APIs since they throttle programmatic access.

from vscode-chatgpt.

Noppey avatar Noppey commented on July 19, 2024

Is it possible to provide some logging output of the OpenAI Api when getting the 403? This way we can provide this logging to transitive-bullshit github as well, as that's probably where this has to be solved.

from vscode-chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.