ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

Authentication bugs

Open acheong08 opened this issue 2 years ago • 8 comments

Tracking here

  • https://github.com/acheong08/ChatGPT/issues/838
  • https://github.com/acheong08/ChatGPT/issues/839
  • https://github.com/acheong08/ChatGPT/issues/795
  • https://github.com/acheong08/ChatGPT/issues/835

acheong08 avatar Feb 21 '23 12:02 acheong08

  • https://github.com/acheong08/ChatGPT/issues/845

acheong08 avatar Feb 21 '23 12:02 acheong08

I found that if I delete access_tokens key in config, then I can use it normally. So, I choose to close my issue since I found the solution

SnapdragonLee avatar Feb 22 '23 03:02 SnapdragonLee

Yes. They are mutually exclusive. You can't put both access_token and email/password at the same time

acheong08 avatar Feb 22 '23 03:02 acheong08

This issue is stale because it has been open for 2 days with no activity.

acheong08 avatar Feb 25 '23 02:02 acheong08

I have the same issue using console or developer API.

using password/email (yahoo) :

Traceback (most recent call last): File "test.py", line 3, in <module> chatbot = Chatbot(config={ File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 42, in wrapper out = func(*args, **kwargs) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 110, in __init__ self.__check_credentials() File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 42, in wrapper out = func(*args, **kwargs) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 124, in __check_credentials self.__login() File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 42, in wrapper out = func(*args, **kwargs) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/revChatGPT/V1.py", line 165, in __login auth.begin() File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 76, in begin self.__part_one(token=csrf_token) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 117, in __part_one self.__part_two(url=url) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 146, in __part_two self.__part_three(state=state) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 170, in __part_three self.__part_four(state=state) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 208, in __part_four self.__part_five(state=state) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 245, in __part_five self.__part_six(old_state=state, new_state=new_state) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 271, in __part_six self.__part_seven(redirect_url=redirect_url, previous_url=url) File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 298, in __part_seven self.get_access_token() File "/Users/alexlrz/opt/anaconda3/lib/python3.8/site-packages/OpenAIAuth.py", line 318, in get_access_token self.access_token = response.json()["accessToken"] KeyError: 'accessToken'

AlexandreLrz avatar Feb 25 '23 12:02 AlexandreLrz

This issue is stale because it has been open for 2 days with no activity.

acheong08 avatar Mar 01 '23 02:03 acheong08

Hi, is there a fix? I have the same error

andybenichou avatar Mar 01 '23 18:03 andybenichou

This issue is stale because it has been open for 2 days with no activity.

acheong08 avatar Mar 05 '23 02:03 acheong08

This issue was closed because it has been inactive for 3 days since being marked as stale.

acheong08 avatar Mar 09 '23 02:03 acheong08

Hello, I get the same error: OpenAI: {"detail":{"message":"Unauthorized - Invalid access token"}} (code: 401) I have double checked my token, it is in correct format (no < > around it and it starts with sk-)

Adefey avatar Apr 07 '23 17:04 Adefey

Please read the wiki. If you're trying to use API keys, use V3

acheong08 avatar Apr 08 '23 03:04 acheong08

Yes, sorry, I used the wrong token

Adefey avatar Apr 08 '23 09:04 Adefey