Forum Settings
Forums

[Fixed] API - adding an anime with episodes fails but still returns 201

New
Sep 11, 2016 12:02 PM
#1

Offline
May 2010
243
Hello,

Adding an anime through https://myanimelist.net/api/animelist/add/id.xml fails if you provide an episode value, but still returns the success HTTP status 201.

Adding an anime without providing an episode value works as intended.
Updating an anime with or without provising an episode value also works as intended.

Here is an example call and response:
curl -i -u user:password -d data="<entry><status>1</status><episode>3</episode></entry>" https://myanimelist.net/api/animelist/add/21.xml


You can see a MySQL error message in the HTML, but the HTTP status is still 201 which indicates success, and the rest of the HTML is also exactly what is returned when a call succeeds.

LunaSep 16, 2016 4:27 AM
Sep 15, 2016 2:47 AM
#2

Offline
May 2010
243
Same bug on mangalist when setting the chapter value. If works fine if you only set the volume value though.

curl -i -u u:p -d data="<entry><status>1</status><chapter>3</chapter><volume>3</volume></entry>" https://myanimelist.net/api/mangalist/add/1.xml
Sep 15, 2016 4:23 PM
#3
Lovely person

Offline
Mar 2016
314
I'm getting the same result. I don't know if it's the episode value or not, but all my "add" requests seem to be failing.

I can see that it's returning a 201 success code, however there is a small text at the top of the GET website that says "MySQL error", which might be the reason. Now my Chrome Extension is basically useless, because I can't do anything about it.

MAL! Please fix this ASAP!
FoxInFlameSep 16, 2016 12:07 AM
Sep 16, 2016 1:53 AM
#4
★★★★★

Offline
Sep 2008
19292
I have forwarded the problem to the devs.
Sep 16, 2016 4:26 AM
#5
★★★★★

Offline
Sep 2008
19292
@IATGOF @FoxInFlame

The bug should be fixed now, if there are still any problems please let me know.
Sep 16, 2016 4:28 AM
#6
Lovely person

Offline
Mar 2016
314
Luna said:
@IATGOF @FoxInFlame

The bug should be fixed now, if there are still any problems please let me know.


Thank you for the quick reply and quick fix of the bug! Indeed, everything is working as it should be now!

More topics from this board

» MAL friend suddenly had their account deleted...?

SmugSatoko - Oct 11

2 by Fluffygreygrass »»
Oct 11, 9:15 PM

» App Not Working

Reecey91 - Oct 7

16 by 1bubb1 »»
Oct 11, 1:11 PM

Sticky: » Club President Request Thread ( 1 2 3 4 5 ... Last Page )

Kineta - Aug 7, 2010

784 by meowyy23 »»
Oct 11, 12:22 PM

» Why is Myanimelist not working in Dubai?

ConstantReader - Oct 11

0 by ConstantReader »»
Oct 11, 4:08 AM

» How do I transfer all my Anime onto a different account?

REKT - Dec 10, 2014

15 by Thunder_lol »»
Oct 10, 2:58 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login