Code is below:
let client = get_client().await?;
let get_invoice_req = GetInvoice::new(&invoice_id);
let get_invoice_res = client.execute(&get_invoice_req).await;
When the invoice is unpaid, it returns Ok, but when the invoice is paid, it turn outs to be HttpError(reqwest::Error { kind: Decode, source: Error("input is not enough for unique date and time", line: 1, column: 1544) }).