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

MangaDex API 301 Redirection #174

Closed
B17C0D3 opened this issue Mar 9, 2021 · 8 comments · Fixed by #173
Closed

MangaDex API 301 Redirection #174

B17C0D3 opened this issue Mar 9, 2021 · 8 comments · Fixed by #173
Labels
bug Something isn't working

Comments

@B17C0D3
Copy link

B17C0D3 commented Mar 9, 2021

Describe the bug
The screenshot is kinda obvious. i will skimp the details.
image

I get this bug since yesterday the 2021-03-08.
Mangadex had again some DDOS attacks und may have done some changes.

API address may have to be changed to https://api.mangadex.org/v2/ ??

@B17C0D3 B17C0D3 added the bug Something isn't working label Mar 9, 2021
@B17C0D3 B17C0D3 changed the title [Bug Report] [Bug Report] Mangadex API Mar 9, 2021
@hkalexling
Copy link
Member

Thanks for letting me know. According to the devs on the MD Discord, it is recommended to use the new https://api.mangadex.org/v2. Currently they redirect requests from https://mangadex.org/api/v2 to the new one, but they would stop the redirection in a few days.

You can simply change the api_url field in your config file to https://api.mangadex.org/v2. In the up coming release, this will be the default value.

@hkalexling hkalexling changed the title [Bug Report] Mangadex API MangaDex API Redirection Mar 9, 2021
@B17C0D3
Copy link
Author

B17C0D3 commented Mar 9, 2021

Thanks for the fast reply. Your suggestion works and i see this topic as resolved.

@B17C0D3 B17C0D3 closed this as completed Mar 9, 2021
hkalexling added a commit that referenced this issue Mar 9, 2021
@Nerothos
Copy link

Nerothos commented Mar 9, 2021

I'm reopening this because I did the url change but I got this message :

Failed to get manga info. Error: Failed to parse JSON

@hkalexling
Copy link
Member

@Nerothos I couldn't reproduce this. Would be great if you could paste your config and let me know what you did before seeing the error.

@hkalexling hkalexling changed the title MangaDex API Redirection MangaDex API 301 Redirection Mar 10, 2021
@hkalexling hkalexling pinned this issue Mar 10, 2021
hkalexling added a commit that referenced this issue Mar 10, 2021
@Nerothos
Copy link

Nerothos commented Mar 10, 2021

Here's the config : (it's the one from the container so I'm sure it's the applied one)

port: 9000
base_url: /
session_secret: mango-session-secret
library_path: /root/mango/library
db_path: /root/mango/mango.db
scan_interval_minutes: 5
thumbnail_generation_interval_hours: 24
log_level: info
upload_path: /root/mango/uploads
plugin_path: /root/mango/plugins
download_timeout_seconds: 30
page_margin: 30
disable_login: false
default_username: ""
mangadex:
  base_url: https://mangadex.org
  api_url: https://api.mangadex.org/v2
  download_wait_seconds: 5
  download_retries: 4
  download_queue_db_path: /root/mango/queue.db
  chapter_rename_rule: '[Vol.{volume} ][Ch.{chapter} ]{title|id}'
  manga_rename_rule: '{title}'

I have the error either from searching a manga or trying to get my queue resume

@hkalexling
Copy link
Member

@Nerothos I think you are using an outdated version of Mango, because the Failed to parse JSON message doesn't even exist in the latest version. Please update it to v0.20.2 and see if it helps.

@hkalexling hkalexling mentioned this issue Mar 10, 2021
@mango-assistant
Copy link

Hi there! The issue has been fixed in v0.21.0. Thanks for the bug report!

@Nerothos
Copy link

Nerothos commented Mar 10, 2021

Yeah sorry that was the problem, I was using v0.20.0, it work with 0.20.2

@hkalexling hkalexling unpinned this issue Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants