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.

[Bug]: MyAnimelist: can't input / or invalid oauth code

See original GitHub issue

Version Number

1.17.1-develop13

What branch are you on?

nightly

Describe the Bug

Hi,

I am using Docker version from meisnate12/plex-meta-manager:nightly on Unraid.

I am trying to enable MyAnimelist following this guide: https://metamanager.wiki/en/latest/config/myanimelist.html

  1. Proceed to MAL Auth config on website: Done
mal:
  client_id: 37a***********4
  client_secret: b5fc*********39
  1. Connect to docker and run script: Done
  2. Script will initiate first OAuth call an provide URL: Done
  3. Once redirect to localhost copy/paste url: Script didn’t wait and continue
| Connecting to My Anime List...                                                                                                                                                                         |
| Config Warning: mal sub-attribute localhost_url not found using None as default                                                                                                                        |
| mal sub-attribute localhost_url added to config                                                                                                                                                        |
|                                                                                                                                                                                                        |
| Navigate to: https://myanimelist.net/v1/oauth2/authorize?response_type=code&client_id=37a4d********6e4&code_challenge=OYci5Wjwm9VtCMG********LLJ2 |
|                                                                                                                                                                                                        |
| Login and click the Allow option. You will then be redirected to a localhost                                                                                                                           |
| url that most likely won't load, which is fine. Copy the URL and paste it below                                                                                                                        |
| URL: | Input Failed                                                                                                                                                                                           |
| My Anime List Connection Failed    
  1. Interrupt script, update config as:
mal:
  client_id: 37a***********4
  client_secret: b5fc*********39
  localhost_url: http://localhost/?code=def502002587f7e04e*********332
  1. Relaunch script and see if that did work:
| Connecting to My Anime List...                                                                                                                                                                         |
| MyAnimeList Error: Invalid code                                                                                                                                                                        |
| My Anime List Connection Failed   

Let me know if am missing anything 😉 Thank you!

Relevant Collection/Overlay/Playlist Definition

No response

Logs

https://gist.github.com/xiaodoudou/f445cefad3e5c17ad889ceb0902b3de0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chazlarsoncommented, Jul 13, 2022

As a workaround I have a couple small scripts here that do just the MAL and trakt auth bits in isolation and produce the YML ready to paste into your config:

https://github.com/chazlarson/Media-Scripts/tree/main/Plex-Meta-Manager

0reactions
linxchaoscommented, Jul 28, 2022

@chazlarson script worked (had to use a different machine to get the script to run, no fault of the script) and it appears that I’m now up and running, but this is still not fixed on PMM proper.

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to get user access token - Forums - MyAnimeList.net
I'm new to using Oauth and here so i'm a bit lost on how to get the user access token. This is what...
Read more >
[USER SUBMITTED GUIDE] How to access the new MAL API ...
I am getting the unsupported grant type error and it seems that I am not generating a token at all. I was able...
Read more >
[USER SUBMITTED GUIDE] How to access ... - MyAnimeList.net
Hi! As you might have noticed, the new MAL API uses OAuth 2.0 to authorise all the HTTP requests. It is no longer...
Read more >
[USER SUBMITTED GUIDE] How to access ... - MyAnimeList.net
I'm getting an error where my code received after i click allow, isn't working. i'm getting a 401 client not authorized for url:...
Read more >
Problem when trying to connect using OAuth - Forums
Hello, Since 10 minutes i'm unable to process to authentification using OAuth, MAL asking me for an username and password
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