ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG]KeyError: 'accessToken'

Open 17Reset opened this issue 2 years ago • 7 comments

self.access_token = response.json()["accessToken"]
                    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^

KeyError: 'accessToken'

17Reset avatar Feb 12 '23 11:02 17Reset

me too

zenorochaV1 avatar Feb 12 '23 12:02 zenorochaV1

Check latest version

acheong08 avatar Feb 12 '23 14:02 acheong08

https://github.com/acheong08/OpenAIAuth/releases/tag/0.1.1

acheong08 avatar Feb 12 '23 14:02 acheong08

I updated the version, but there is a new error: print(line["choices"][0]["text"].replace("<|im_end|>", ""), end="") ~~~~^^^^^^^^^^^ TypeError: string indices must be integers, not 'str'

17Reset avatar Feb 12 '23 14:02 17Reset

self.access_token = response.json()["accessToken"]
                    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^

KeyError: 'accessToken'

https://github.com/acheong08/ChatGPT/pull/680

F33RNI avatar Feb 12 '23 19:02 F33RNI

Print the full line please

acheong08 avatar Feb 13 '23 00:02 acheong08

Okay, I printed the whole line and this problem "Error... Logging in again", what is the cause of this problem?

17Reset avatar Feb 13 '23 01:02 17Reset