-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
Description
We need to handle retires:
Lines 212 to 224 in 8a29dec
| let status = response.status(); | |
| let body = response.text().await.map_err(GenevaUploaderError::Http)?; | |
| if status == reqwest::StatusCode::ACCEPTED { | |
| let ingest_response: IngestionResponse = | |
| serde_json::from_str(&body).map_err(GenevaUploaderError::SerdeJson)?; | |
| Ok(ingest_response) | |
| } else { | |
| Err(GenevaUploaderError::UploadFailed { | |
| status: status.as_u16(), | |
| message: body, | |
| }) | |
| } |