Skip to content

AceForge 0.6.18

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 20 Oct 18:49
· 5 commits to main since this release

Fixes a 400 from HOT-Step when rendering with a source audio or a reference

The two engines disagree about the request shape, and the disagreement is fatal
rather than cosmetic:

acestep.cpp       request_parse_json_array -> an object OR an array
hot-step-server   request_parse_json      -> an object ONLY

The app sent an array to both. The bundled engine takes it; HOT-Step answers 400
"Multipart: invalid JSON in 'request' part". Only the multipart path was
affected, because the plain JSON branch of both engines uses the array parser --
which is why it looked like the engine was broken rather than the request.

Reproduced against the real HOT-Step binary with a real WAV and a real multipart
body:

ARRAY (old behaviour)  ->  400  "Multipart: invalid JSON in 'request' part"
OBJECT (fixed)         ->  200  {"id":"d30d7850a08cbdd7"}

One request now goes as an object, which both engines accept. A genuine batch
keeps the array, which only the engine that can parse one gets to have: HOT-Step's
multipart path takes a single request, so there the extra takes are dropped and
it says how many, rather than the whole render failing.

The server now remembers which engine it launched. The two share an HTTP surface
and nothing distinguished them at runtime, which is how one request shape had to
serve two contracts.

The error message was hiding all of this. The multipart path discarded the
response body, and ureq's Display for a status error is "status code 400" -- so
the engine's own explanation, which names the problem exactly, never reached
anyone. Both submit paths read it now.

254 tests.