Unverified Commit 94795309 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

fix(http client): more user-friendly error messages when decoding fails (#853)

* fix(http client): serde_json::Value -> T

This PR changes the http client to decode the reponse as `Response<serde_json::Value> -> Response<R>`
In order to get a more user-friendly error message


response: Err(ParseError(Error("missing field `error`", line: 1, column: 3752798)))


2022-08-11T13:57:12.033043Z  INFO http: r: Parse error: invalid type: string "lo", expected u8

* address grumbles

* Update client/http-client/src/client.rs

* Update client/http-client/src/client.rs
parent bf73876d
Pipeline #215075 passed with stages
in 4 minutes and 31 seconds