acheong08/ChatGPT

[Bug]: access token is expired in a minute!

WANEYVIN opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

It seems that access is compromised, refreshed access token is expired in a minute! I tried several account and refreshed new access tokens and test results are the same! the error is like following:
revChatGPT/V1.py", line 877, in __check_response
raise error from ex
revChatGPT.typings.Error: OpenAI: {"detail":{"message":"Your authentication token has expired. Please try signing in again.","type":"invalid_request_error","param":null,"code":"token_expired"}} (code: 401)
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT

Steps to reproduce the problem

  1. got expire access token error message
  2. go to openai chatgpt login again and get new access token
  3. install the new access token, try to run V1 again.
  4. the first query is OK! but the same error happen again at the second query to the chatGPT.

What should have happened?

access token should NOT be expired in few minutes.

Version where the problem happens

Name: revChatGPT
Version: 6.8.6
Summary: ChatGPT is a reverse engineering of OpenAI's ChatGPT API
Home-page: https://github.com/acheong08/ChatGPT
Author: Antonio Cheong
Author-email: acheong@student.dalat.org
License: GNU General Public License v2.0
Location:/lib/python3.11/site-packages
Requires: httpx, openai, OpenAIAuth, prompt-toolkit, requests, rich, tiktoken
Required-by:

What Python version are you running this with?

Python 3.11.4

What is your operating system ?

MacOS

Command Line Arguments

no

Console logs

revChatGPT/V1.py", line 877, in __check_response
    raise error from ex
revChatGPT.typings.Error: OpenAI: {"detail":{"message":"Your authentication token has expired. Please try signing in again.","type":"invalid_request_error","param":null,"code":"token_expired"}} (code: 401)
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT

Additional information

No response