speedruncomorg / api

REST API Documentation for speedrun.com
346 stars 36 forks source link

POSTing a run via API for another user returns 500 Internal Server Error / only returns header #87

Open HowDenKing opened 5 years ago

HowDenKing commented 5 years ago

I've posted this on the Discord on Feb 1st as well, but the API returns nothing when trying to submit a run on behalf of another user.

Sent is this (Key removed for obvious reasons) POST /api/v1/runs HTTP/1.1 HOST: www.speedrun.com x-api-key: PRIVATE KEY accept: application/json content-type: application/json content-length: 439 { "run": { "category": "7dgr0jlk", "level": "rdq7z0m9", "date": "2018-05-16", "platform": "nzelkr6q", "verified": false, "times": { "ingame": 124.98 }, "players": [ {"rel": "guest", "name": "[jp]Sunder"} ], "emulated": false, "video": "https://www.youtube.com/watch?v=h3IOvZfHafE", "comment": "TA verified: http://mhw.wiki-db.com/solota/record/316", "variables": { "89kxg5l": { "type": "pre-defined", "value": "5le3x5zq" }, "789key5l": { "type": "pre-defined", "value": "p1226w21" } } } }

Blantas commented 5 years ago

There's a bug submitting runs for other players (in my case, it crashed and returned 500 reponse). By looking at this repo history, expect to see a fix in 2035.

neiunderscore commented 5 years ago

same issue here. same issue occurs when trying to submit a coop run.

JoshSanch commented 4 years ago

+1 for this, having this right now. Please fix soon :(

luckytyphlosion commented 4 years ago

Same, I am in the process of transferring runs from level leaderboards to category extensions and this bug prevents me from fully automating the transfer.

JoshSanch commented 4 years ago

Hey, I'm doing the same if you're interested in something that applies a manual workaround. I'll drop it here jic:

https://github.com/JoshSanch/run_migrator