Skip to content

Commit

Permalink
print error
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Dec 11, 2024
1 parent abf008c commit 9e67591
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/maple/transitland_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ async fn try_to_download(
match response {
Ok(response) => Ok(response),
Err(error) => {
println!("Error with downloading {}: {}, {:?}, trying again", feed_id, url, error);

//trying again with a different client

let client = reqwest::ClientBuilder::new()
.user_agent("Catenary Maple")
.timeout(Duration::from_secs(60 * 3))
.connect_timeout(Duration::from_secs(20))
.build()
.unwrap();

Expand Down

0 comments on commit 9e67591

Please sign in to comment.