[Fixed] [Mainsite] Unexpected end of JSON input

Status
Not open for further replies.
Dex-chan lover
Joined
Sep 7, 2019
Messages
412
Supporter
Joined
May 24, 2020
Messages
127
When you open the resource, https://mangadex.org/title/28289/living-in-this-world-with-cut-paste, the app sends a POST request to https://mangadex.org/legacy/mapping and gets a 405 Response, which means the server isn't allowing it to POST.

You get that JSON input error because it is reading the error 405 message instead of json data.

Sending a GET request to https://mangadex.org/legacy/mapping returns a 404 Response, which means that there is no legacy mapping at https://mangadex.org

Copying the original request the user interface made, but sending it to to https://api.mangadex.org/legacy/mapping instead does result in a successful response, that includes json data, that includes the key acaf9991-d55c-4d8d-8f26-f98d769f4e32 that you need to get to the current version of the resource.

It's not something a user can fix, but someone with the source code should be able to fix it in a matter of seconds. They just need to replace all instances of "https://mangadex.org/legacy/mapping" with "https://api.mangadex.org/legacy/mapping"
 
Womp Womp
Staff
Super Moderator
Joined
Aug 23, 2023
Messages
1,172
Hi @Lichon (& co.)!
The fix for this bug should now be in prod.

As @wiz_gmc correctly guessed, it was due to the request being sent to the wrong host (the root of the active domain instead of the API)
 
Status
Not open for further replies.

Users who are viewing this thread

Top