Closed beckend closed 3 months ago
quiet flag = Some(true)
works. when false, throws this error.
Most likely because silent false is a streaming response, giving a lot of progress data.
Makes sense. The only response types supported by the rust code generator at the moment are complete json encoded strings.
I'm surprised this was the default behavior.
Maybe the right thing to do for now is to hack the generated code to remove the quiet
option for the user and pass true
through in the underlying request.
Or just leave it be and make the user aware of it, it would more ideal to have some workaround where the API client is called manually to the endpoint and handle the stream.