erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.09k stars 224 forks source link

AniList returns Internal Server Error #649

Closed KuiShanya closed 6 years ago

KuiShanya commented 6 years ago

So far it appears that syncing data from anilist to taiga works perfectly fine, but attempting to sync with anilist by updating taiga entries gives an internal server error from AniList. I've made sure to set the anilist account to my username and triple checked authorization so I have no clue as to what is happening.

blamoo commented 6 years ago

I just migrated my list from MAL and got the same problem here...

2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | HTTP/1.1 500 Internal Server Error
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Server: nginx/1.11.9
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Content-Type: application/json
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Transfer-Encoding: chunked
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Connection: keep-alive
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Cache-Control: no-cache, private
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Date: Sun, 08 Jul 2018 05:33:56 GMT
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | X-RateLimit-Reset: 1531028090
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | X-RateLimit-Limit: 90
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | X-RateLimit-Remaining: 87
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | Set-Cookie: laravel_session=blah blah blah; expires=Sun, 15-Jul-2018 05:33:56 GMT; Max-Age=604800; path=/; httponly
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | <= Response header | 
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | >>
<= Recv data | 60
{"data":{"SaveMediaListEntry":null},"errors":[{"message":"Internal Server Error","status":500}]}
0
2018-07-08 02:33:56 [Debug] http_callback.cpp:126 base::http::Client::DebugHandler | Connection #0 to host graphql.anilist.co left intact
2018-07-08 02:33:56 [Debug] http.cpp:461 taiga::HttpManager::FreeConnection | Connections for hostname is now 0: graphql.anilist.co
qtto commented 6 years ago

Getting the same thing. Am on the latest version.

erengy commented 6 years ago

Last time someone mentioned Internal Server Error, it was because they entered their email address instead of their username to Settings → Services → AniList. Could that be the case for you too?

If not, could you send me the rest of the debug log, @blamoo? (You may send it to the email address at my profile, to be safe.) Assuming that it's not actually a server issue, something might be wrong in the request Taiga sends.

qtto commented 6 years ago

@erengy: while preparing my debug log I remembered I changed my Anilist username. Changing it and re-authorizing fixed it. Is there no way to pull the profile name from Anilist instead of entering it manually? I don't know their API, so it might not be worth the effort, just spitballing. :-)

KuiShanya commented 6 years ago

@erengy I've triple checked and I'm certain that it's my username and not my email. Also I'm on the latest build since I downloaded it export my list

blamoo commented 6 years ago

@erengy okay.

I sent you my precisous super secret tokens too. Please don't judge me because of my list :3

erengy commented 6 years ago

@blamoo Thanks! I checked your debug log and didn't find anything out of ordinary. However, I was able to figure out what's causing the issue. Reported it at AniList/ApiV2-GraphQL-Docs#45.

For now, I disabled requesting anime studios from AniList. You should be able to resolve the issue by downloading the latest build.

blamoo commented 6 years ago

It works! Thank you :)