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
Since responseTypeToString JSONResponse returns "text" instead of a "json", the fromResponse function is basically just wrapping a JavaScript string instead of a JSON blob.
This causes functions from Data.Argonaut.Decode (like toObject) to fail when they really should be succeeding.
I think the Respondable Json instance should look something like this:
The
Respondable
instance forJson
looks like this:Since
responseTypeToString JSONResponse
returns "text" instead of a "json", thefromResponse
function is basically just wrapping a JavaScript string instead of a JSON blob.This causes functions from Data.Argonaut.Decode (like
toObject
) to fail when they really should be succeeding.I think the
Respondable Json
instance should look something like this:This will give you a correct blob of JSON data and things like
toObject
will succeed.The text was updated successfully, but these errors were encountered: