Commit f0e7b9a
fix: add retry delay to WorldBank HTTP requests to handle transient 502 errors
The WorldBank type provider makes live HTTP requests at compile time to
populate the country/indicator/region/topic types. Previously, retries
happened immediately with no delay, meaning all 5 retries would fail in
rapid succession during transient server-side outages (e.g. 502 Bad Gateway).
Add a 2-second delay between retries so that brief API outages are more
likely to be survived before all retries are exhausted.
Fixes #1748
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3884515 commit f0e7b9a
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
0 commit comments