Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[401] {"code":"auth.obtain_access_token.client_inactive","context":[],"error":"invalid_client"} #39

Closed
bengong2015 opened this issue Jan 28, 2025 · 3 comments

Comments

@bengong2015
Copy link

Got 401 invalid_client while login:

Traceback (most recent call last):
File "D:\git\cr-downloader\subtitles.py", line 92, in
asyncio.run(main())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\git\cr-downloader\subtitles.py", line 51, in main
await client.start()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\crunpyroll\client.py", line 73, in start
return await self.session.authorize()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\crunpyroll\session.py", line 41, in authorize
response = await self._client.api_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\crunpyroll\client.py", line 117, in api_request
return Client.parse_response(response, method=method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\crunpyroll\client.py", line 92, in parse_response
raise CrunpyrollException(message)
crunpyroll.errors.CrunpyrollException: [401] {"code":"auth.obtain_access_token.client_inactive","context":[],"error":"invalid_client"}

@Hartie95
Copy link

Hartie95 commented Jan 28, 2025

This change helped me for a quick local fix:
anidl/multi-downloader-nx@6ea04de#diff-8f7e5d28d298d3b9af9f0592be679a8d46fd766c3e1c7ae167f1fd26ed975e53

@Kalilamodow
Copy link

Kalilamodow commented Mar 7, 2025

Go to the crunpyroll install path and open up utils.py. Then replace the line that defines PUBLIC_TOKEN with

PUBLIC_TOKEN = "dC1rZGdwMmg4YzNqdWI4Zm4wZnE6eWZMRGZNZnJZdktYaDRKWFMxTEVJMmNDcXUxdjVXYW4="

This is only a temporary fix until the pull gets merged.

@bengong2015
Copy link
Author

Fixed by replace public token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants