LogEvent.requestSuccess expects finalizedResult: Any, but we were passing in Result<Any, NetableError> which was causing problems when we were trying to unwrap and print the finalized result.
I think there might be a more elegant way to do this, where we pass the whole result into .requestSuccess and then print a different message depending on whether the decoding was a success or not, because I think you could make an argument the request has succeeded either way, but I couldn't get it to work and I'm not sure it's worth dwelling on.
LogEvent.requestSuccess
expectsfinalizedResult: Any
, but we were passing inResult<Any, NetableError>
which was causing problems when we were trying to unwrap and print the finalized result.I think there might be a more elegant way to do this, where we pass the whole result into
.requestSuccess
and then print a different message depending on whether the decoding was a success or not, because I think you could make an argument the request has succeeded either way, but I couldn't get it to work and I'm not sure it's worth dwelling on.