-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot use the login function #26
Comments
Hello, seems that the current method for login has been deprecated, and we need to migrate to the new OAuth2 login system. I will investigate further how to implement it. For getting the reading lists, unfortunately, there is no way to get a user's manga library without being on a public reading list. |
Hello again, can you retry the login? As I was debugging I couldn't replicate the issue (the migration to OAuth will still happen) as the endpoint seems to be up still. Can you include which version of the library you are using? |
Hello, thanks for looking into it! |
I confirmed the error is still present, and i tried to login with another account only to get the same result. here's the link to the discussion Do you think it might be because of regional differences? |
Oh so that was the reason huh. Thanks a lot for that! I figured out how to login with the bearer text but it was pretty inefficient, and using selenium is gonna make my program a lot slower and bulkier...guess I'll wait for OAuth to be implemented. It ain't implemented yet right? Where can I find out if it got implemented? |
They have added it to the production server. Note: See #32. In the changes in that code and in the spec, it says that it needs to have client id and client secret after you created an app in the API clients in the settings though it will work for the accounts that created the apps themselves. After some testing with this code: username = #redacted
password = #redacted
clientId = #redacted
clientSecret = #redacted
resp = requests.post(url, data = {"grant_type": "password", "username": username, "password": password, "client_id" : clientId, "client_secret" : clientSecret})
resp = resp.json() It spits out token type, scope, and client type (useful when public clients are implemented) and the access and refresh token among other things. |
I wanted to fetch my reading list from my mangadex account, so I tried using the Api().login() method. However, no matter how many times I do it or how many times I confirm my username and password, I got this traceback :
I tried using the official api using this code :
as you can see there's that error. so i figured it was a problem with the official api, am i correct?
and if It is a problem with the official api, is there any other way of getting my reading lists?
The text was updated successfully, but these errors were encountered: