diff --git a/api/src/api/v2.js b/api/src/api/v2.js index f9a3f66..d772c5a 100644 --- a/api/src/api/v2.js +++ b/api/src/api/v2.js @@ -87,6 +87,15 @@ function get_job(body) { } } + if ( + files.filter(file => !file.encoding || file.encoding === 'utf8') + .length === 0 + ) { + return reject({ + message: 'files must include at least one utf8 encoded file', + }); + } + const rt = runtime.get_latest_runtime_matching_language_version( language, version