question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't authenticate Crunchyroll, CrunchyrollAPIError: Unauthenticated request

See original GitHub issue

Issue

  • This is not a bug report, feature request, or plugin issue/request.
  • I have read the contribution guidelines.

Description

Version: Streamlink 1.3.1

Streamlink’s Crunchyroll plugin is failing with a CrunchyrollAPIError: Unauthenticated request error.

Expected / Actual behavior

The following command should authenticate with the valid Crunchyroll account, and then play the stream at the specified quality in the specified player.

streamlink --crunchyroll-username=<user> --crunchyroll-password=<pass> https://www.crunchyroll.com/somali-and-the-forest-spirit/episode-1-journeying-parent-and-child-792285 best --player "D:\Program Files\VideoLAN\VLC\vlc.exe"

What actually happens is the following error:

[cli][info] Found matching plugin crunchyroll for URL https://www.crunchyroll.com/somali-and-the-forest-spirit/episode-1-journeying-parent-and-child-792285
Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main
  File "runpy.py", line 85, in _run_code
  File "D:\Program Files (x86)\Streamlink\bin\streamlink.exe\__main__.py", line 18, in <module>
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 1038, in main
    handle_url()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 578, in handle_url
    streams = fetch_streams(plugin)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 458, in fetch_streams
    sorting_excludes=args.stream_sorting_excludes)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugin\plugin.py", line 317, in streams
    ostreams = self._get_streams()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 306, in _get_streams
    api = self._create_api()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 365, in _create_api
    api.start_session()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 197, in start_session
    self.session_id = self._api_call("start_session", params, schema=_session_schema)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 173, in _api_call
    raise CrunchyrollAPIError(err_msg, err_code)
streamlink.plugin.crunchyroll.CrunchyrollAPIError: Unauthenticated request

Reproduction steps / Explicit stream URLs to test

Run the following command with a valid Crunchyroll account for user/pass:

streamlink --crunchyroll-username=<user> --crunchyroll-password=<pass> https://www.crunchyroll.com/somali-and-the-forest-spirit/episode-1-journeying-parent-and-child-792285 best --player "D:\Program Files\VideoLAN\VLC\vlc.exe"

Logs

[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.6.6
[cli][debug] Streamlink: 1.3.1
[cli][debug] Requests(2.22.0), Socks(1.7.1), Websocket(0.57.0)
[cli][info] Found matching plugin crunchyroll for URL https://www.crunchyroll.com/somali-and-the-forest-spirit/episode-1-journeying-parent-and-child-792285
[cli][debug] Plugin specific arguments:
[cli][debug]  --crunchyroll-username=<user_removed> (username)
[cli][debug]  --crunchyroll-password=<pass_removed> (password)
[utils.l10n][debug] Language code: en_US
[plugin.crunchyroll][debug] Creating session with locale: en_US
Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main
  File "runpy.py", line 85, in _run_code
  File "D:\Program Files (x86)\Streamlink\bin\streamlink.exe\__main__.py", line 18, in <module>
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 1038, in main
    handle_url()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 578, in handle_url
    streams = fetch_streams(plugin)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 458, in fetch_streams
    sorting_excludes=args.stream_sorting_excludes)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugin\plugin.py", line 317, in streams
    ostreams = self._get_streams()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 306, in _get_streams
    api = self._create_api()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 365, in _create_api
    api.start_session()
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 197, in start_session
    self.session_id = self._api_call("start_session", params, schema=_session_schema)
  File "D:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins\crunchyroll.py", line 173, in _api_call
    raise CrunchyrollAPIError(err_msg, err_code)
streamlink.plugin.crunchyroll.CrunchyrollAPIError: Unauthenticated request

Additional comments, screenshots, etc.

Love Streamlink? Please consider supporting our collective. Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
alzamer2commented, Feb 1, 2020

it seem they changed access_token try WveH9VkPLrXvuNm in place of Scwg9PRRZ19iVwD

3reactions
asermaxcommented, Feb 1, 2020

Having the same issue as well; it seems to work by using the --crunchyroll-session-id option with a session id generated on the website though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plugins.crunchyroll: Unauthenticated request error, login ...
The Crunchyroll plugin worked well last Sunday. Now I get an Unauthenticated request message, even though my username/password haven't changed.
Read more >
Unauthenticated request crunchyroll++ : r/AltStore - Reddit
Can anyone help me when I download crunchyroll++ it always says Retry Unauthenticated request if anyone knows, please help.
Read more >
Crunchyroll Login Unauthenticated Request - LoginsLink
Find the official link to Crunchyroll Login Unauthenticated Request. Explore videos, FAQs, troubleshooting, and users feedback about crunchyroll.com.
Read more >
المنتديات - Unauthenticated Request Error - Crunchyroll
I've been getting an error saying "Unauthorized request" for the last couple of days now. This is the second time this happened.
Read more >
How To Fix Crunchyroll Not Working Problem Android & Ios
Crunchyroll #NotOpen #NotWorking #ProblemHow To Fix Crunchyroll App Not Working Problem Android & Ios - Crunchyroll Not Open, Not Loading ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found