You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and inside my maybe_retry/2 function, when I try to access the response.body, the content is compressed.
After I do this below, it works.
defpmaybe_retry(request,%Req.Response{status: 403}=response)do{_request,%Req.Response{body: decompressed_body}}=Req.Steps.decompress_body({request,response})decoded_body=Jason.decode!(decompressed_body)match?(%{"message"=>"You have exceeded a secondary rate limit"<>_},decoded_body)end
I assumed that the body will be already decompressed as it is in the result of the Req.new() call. Am I mistaken or is this a bug?
The text was updated successfully, but these errors were encountered:
I am doing this
and inside my
maybe_retry/2
function, when I try to access theresponse.body
, the content is compressed.After I do this below, it works.
I assumed that the body will be already decompressed as it is in the result of the
Req.new()
call. Am I mistaken or is this a bug?The text was updated successfully, but these errors were encountered: