acheong08 / ChatGPT

Reverse engineered ChatGPT API
GNU General Public License v2.0
28.04k stars 4.48k forks source link

Field missing #834

Closed yehx1 closed 1 year ago

yehx1 commented 1 year ago

Field missing {'detail': {'message': 'Could not parse your authentication token. Please try signing in again.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_jwt'}} I got this error even try signing again.

wswslzp commented 1 year ago

Same to me. Just used "access_token" to sign in but got this error.

chatbot = Chatbot(config={
  "access_token": "<access_token>"
  # "email": "<your email>",
  # "password": "<your password>"
})
anirudh-hegde commented 1 year ago

Field missing {'detail': {'message': 'Could not parse your authentication token. Please try signing in again.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_jwt'}} I got this error even try signing again.

It seems that you are encountering an authentication error while trying to access a service that requires authentication using a JSON Web Token (JWT).

salahxgamer commented 1 year ago

if you could share more details like the config you used (alter sensitive data) and try getting new tokens by logging out and back in

acheong08 commented 1 year ago

Didn't copy the full jwt

yehx1 commented 1 year ago

I used config file, namely ~/.config/revChatGPT/config.json, then got this error. But if I set config with Chatbot(config={"access_token": ""}), the problem was gone. Now I can use it with this method.