OpenAIAuth icon indicating copy to clipboard operation
OpenAIAuth copied to clipboard

Your version of the ChatGPT app is out of date. Please update to the newest build of the app.

Open deathsovushka opened this issue 1 year ago • 4 comments

Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\ChatGPT\main.py", line 91, in <module>
    access_token = auth.get_access_token()
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 69, in get_access_token
    return self.__part_two()
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 82, in __part_two
    return self.__part_three(code_verifier, url)
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 97, in __part_three
    return self.__part_four(code_verifier, state)
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 124, in __part_four
    return self.__part_five(code_verifier, state)
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 150, in __part_five
    return self.__part_six(code_verifier, location, url)
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 179, in __part_six
    return self.__get_access_token(code_verifier, resp.headers["Location"])
  File "C:\Users\user\PycharmProjects\ChatGPT\venv\lib\site-packages\OpenAIAuth.py", line 221, in __get_access_token
    raise Exception("{}: {}".format(error, error_description))
Exception: access_denied: Your version of the ChatGPT app is out of date. Please update to the newest build of the app.

deathsovushka avatar Jul 12 '23 18:07 deathsovushka

OpenAi changed their IOS authentication flow to require new pre-auth with their services before going to auth0, so use access tokens, or https://github.com/acheong08/OpenAIAuth/pull/45 until permanent fix is in place.

zutto avatar Jul 14 '23 17:07 zutto

I got a temporary fix in for the Go version (locally. I don't want to add close sourced dependencies). Might need some annoying workarounds for python

acheong08 avatar Jul 16 '23 13:07 acheong08

Apologize for the slow action. Caught a high fever over the past week

acheong08 avatar Jul 16 '23 13:07 acheong08

Looks like I missed some details from #45. Device ID expires

acheong08 avatar Jul 16 '23 13:07 acheong08