rawandahmad698 / PyChatGPT

⚡️ Python client for the unofficial ChatGPT API with auto token regeneration, conversation tracking, proxy support and more.
MIT License
4.22k stars 446 forks source link

[BUG] Token Regeneration Error/Login Errors #71

Open rawandahmad698 opened 1 year ago

rawandahmad698 commented 1 year ago

I'm seeing a lot of people report issues within the token regeneration process, If you're affected, please react.

rawandahmad698 commented 1 year ago

Update:

Looks like an Issue with Auth0. I can't login in the browser either

https://chat.openai.com/auth/login?callbackUrl=https%3A%2F%2Fchat.openai.com%2F&error=OAuthCallback

image
acheong08 commented 1 year ago

It's up again

programmerguys commented 1 year ago

no!!! It seems to have gone down again

joytianya commented 1 year ago

Has it been solved?I still can't log in https://chat.openai.com/auth/login?callbackUrl=https%3A%2F%2Fchat.openai.com%2F&error=OAuthCallback

Cubicpath commented 1 year ago

It seems to have gone down again

pen-ho commented 1 year ago

I can login in the browser

https://chat.openai.com/auth/login?callbackUrl=https%3A%2F%2Fchat.openai.com%2F&error=OAuthCallback

gd1m3y commented 1 year ago

seems like an api only error

reycn commented 1 year ago

Looking forward to a good solution to check if the error was raised by the official server.

maraxin commented 1 year ago

Is there any fix yet?

gd1m3y commented 1 year ago

i believe this error is internal to library now since i am able to use other wrappers :-)

maraxin commented 1 year ago

well, what do I do then? I am new to it and I don't have access to the site

acheong08 commented 1 year ago

This was a server error and it has since been fixed

maraxin commented 1 year ago

I still get the same error, that in #80

acheong08 commented 1 year ago

If you are in China, you must use proxy: https://github.com/bupticybee/ChineseAiDungeonChatGPT/issues/23

maraxin commented 1 year ago

I am not in China, but I'll try

maraxin commented 1 year ago

It does not work with proxy as well

acheong08 commented 1 year ago

I'm unsure how to debug the auth in this repo but if you use https://github.com/acheong08/ChatGPT with --debug enabled, you should be able to see the error more clearly. I might be able to assist more then

maraxin commented 1 year ago

I'll try

transitive-bullshit commented 1 year ago

This is the firs time I'm seeing this. Looks like OpenAI added an additional check that's preventing the TLS approach from working at the moment:

https://user-images.githubusercontent.com/552829/206929867-2a14180d-4140-4fa2-b764-15d789599dbe.mp4

Cubicpath commented 1 year ago

Yep seems to be hCaptcha

image

gerrywastaken commented 1 year ago

They put Cloudflare in front of their site as a CDN, which makes a lot of sense, but it now means they have Cloudflare's additional security checks against bots.

There seems to be a repo project for bypassing this: https://github.com/VeNoMouS/cloudscraper

I wish they would just release an API, I'd gladly pay to use it. :/

Ademking commented 1 year ago

image

ChatGPT is using version 2 Captcha challenge of Cloudflare. I don't think this is possible using VeNoMouS/cloudscraper

tiagorangel2011 commented 1 year ago

Also having problems.

    raise Exceptions.Auth0Exception("Failed to make the first request, Try that again!")
pychatgpt.classes.exceptions.Auth0Exception: Failed to make the first request, Try that again!
devashish2024 commented 5 months ago

Hey, is there any way to automaitcally generate token (like infinite gpt without me having to control the tokens, just automate generation)? Is there any way, welp?