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

Unable to authenticate? #40

Closed
ipkpjersi opened this issue Aug 7, 2024 · 2 comments
Closed

Unable to authenticate? #40

ipkpjersi opened this issue Aug 7, 2024 · 2 comments

Comments

@ipkpjersi
Copy link

ipkpjersi commented Aug 7, 2024

I tried using the code from #21 as a starting point as I am interested in exporting backups of my watch history over time, as I like to maintain ownership of my own data.

However,

When trying to authenticate like this:

async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // log in to crunchyroll with your username and password
    let crunchyroll = Crunchyroll::builder()
        .login_with_credentials("myemail", "mypassword")
        .await?;

with my valid working email address and password that I can log into the website with, when using that code it simply returns this:
Error: Request(CrunchyrollErrorContext { message: "invalid_client (auth.obtain_access_token.client_inactive) - ", url: Some("https://www.crunchyroll.com/auth/v1/token"), value: None, extra: Some(401) })

Am I doing something wrong, is there an access token I need or something to use as the password? To me it seems like it should be working...

@bytedream
Copy link
Member

Did you use the latest version (0.12.0)?

@ipkpjersi
Copy link
Author

ipkpjersi commented Aug 7, 2024

Oops, I was using an old version, that was it. It now works as expected. Thanks!

P.S. This is my first time trying out Rust, and I have to say, it does seem pretty nice.

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

2 participants