rust-lang / triagebot

Automation/tooling for Rust spaces
https://triage.rust-lang.org
Apache License 2.0
177 stars 75 forks source link

Triagebot on Zulip: "Failed to query team API: could not get team data" #332

Open dtolnay opened 4 years ago

dtolnay commented 4 years ago

I sent a "meta" command to triagebot on Zulip and got back:

Failed to query team API: could not get team data

Caused by:
0: error sending request for url (https://team-api.infra.rust-lang.org/v1/zulip-map.json): connection error: Connection reset by peer (os error 104)
1: connection error: Connection reset by peer (os error 104)
2: Connection reset by peer (os error 104)

I resent the same command ~5 seconds later and it worked. Maybe this needs some retry logic?

Mark-Simulacrum commented 4 years ago

Hm, interesting. I wonder if this is a stale reqwest client being used -- I recall that the non-async variant could hit this if the connection died when we went to go use it, but I thought that had gotten fixed in the async rewrite.

Mark-Simulacrum commented 4 years ago

I've added some retry handling code to team API access at least.