covid-policy-modelling / web-ui

Frontend for COVID modeling
MIT License
0 stars 2 forks source link

Error on large payloads from GitHub API #43

Open steven-cd opened 2 years ago

steven-cd commented 2 years ago

If a user attempts to submit a simulation through the API with a large config value, the request to the /repos/${repoOwner}/${repoName}/dispatches endpoint results in a 422 Unprocessable Entity, with the message "client_payload is too large.". The limit for the payload doesn't seem to be documented, but others suggest it's around ~70kB.

I can see three options here:

steven-cd commented 2 years ago

A version using option 2, compression, has now been released, which should prevent this error in most cases. The last option is probably still the best however, and supports #44, so I'm going to leave this open until that is implemented.