Closed philss closed 3 years ago
Is this related to issue #30?
@jfacorro yes! I didn't see that issue :grimacing: Thanks for pointing out!
I think this fix covers all the services that enable the body as binary.
Hi @philss
I'm getting an error in the Erlang library when trying to fetch from S3, since the client is trying to decode the non-decoded body of the response. I wonder if this is an issue of the Erlang generated module or if you have the same for Elixir. Would it be safe to assume that whenever the "send-body-as-binary" flag is set, the inbound/outbound procedure is the same?
And looking at the actual code, it looks like we need to the same for the output/shape, cause this PR only addresses it for input/shape.
Would it be safe to assume that whenever the "send-body-as-binary" flag is set, the inbound/outbound procedure is the same?
@robertoaloi I think there is a way to read that from the output shape. I will try to play with this. Also, I think this is a problem both for Erlang and Elixir.
In any case, can you open a new issue reporting the problem? Thanks!
I think there is a way to read that from the output shape. I will try to play with this.
Yes, exactly what I found (see my second comment above). Opening a PR, at least for the Erlang part of it.
This is necessary to enable some operations like S3's "put object" to send the payload as a binary (a string or an binary representing a blob).
~A fix to Erlang REST template is coming soon~.