cartesi / openapi-interfaces

HTTP interfaces specified with OpenAPI.
Apache License 2.0
2 stars 7 forks source link

Fix 202 response, which is in fact a text/plain #6

Closed tuler closed 1 year ago

tuler commented 1 year ago

The host-runner is responding 202 with Content-Type: text/plain and a string like "no rollup request available". This should be reflected in the API spec. Otherwise code generation tools don't handle it correctly.

As far as I understand the real rollups http server doesn't return 202. Or at least I couldn't find it.

gligneul commented 1 year ago

In the HTTP server running inside the Cartesi Machine, the machine is halted when there is no input to be processed. So, from the point of view inside the machine, no time passes between inputs. Outside of the machine, the request might time out. To avoid that, the host-runner returns 202.