codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.09k stars 219 forks source link

Kata state cannot be saved if user code is more than 1MB in size #2726

Open Voileexperiments opened 2 years ago

Voileexperiments commented 2 years ago

I have a solution to a kata which is 1055067 bytes in length. It passes all the tests. However, then CW fails to save the code or mark the kata as solved because the POST request to /api/v1/code-challenges/projects/:project_id/solutions/:solution_id/notify failed with a nginx 413 Request Entity Too Large error page. Reducing the solution byte size to around 1040000 bytes solves this issue.

If katas allow >1MB solutions to run, they definitely shouldn't fail to save or mark as solved.

┆Issue is synchronized with this Clickup by Unito

Voileexperiments commented 2 years ago

As discovered here, this also happens when test fixture exceed 1MB (because something very large is being hard-coded in the tests).

Voileexperiments commented 1 year ago

Another instance

Voileexperiments commented 1 year ago

Another instance