Commit b2b0f2d
authored
[xaprepare] skip download progress for
We are getting the error pretty early on during the build:
Downloading dotnet-install script...
Warning: Failed to obtain dotnet-install script size from URL 'https://dot.net/v1/dotnet-install.sh'. HTTP status code: InternalServerError (500)a
-> https://dot.net/v1/dotnet-install.sh
downloading dotnet-install.sh
It seems the code is timing out on the call:
await httpClient.GetAsync (url, HttpCompletionOption.ResponseHeadersRead);
And then the code has some retry logic that eventually returns:
return (false, 0, HttpStatusCode.InternalServerError);
I am unable to reproduce this locally on either Mac or Windows.
Reworking this code to just download the file with no progress appears
to solve the problem on Azure DevOps build agents.dotnet-install script (#9053)1 parent e40d395 commit b2b0f2d
File tree
2 files changed
+6
-14
lines changed- build-tools/xaprepare/xaprepare
- Application
- Steps
2 files changed
+6
-14
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
93 | 84 | | |
94 | 85 | | |
95 | | - | |
96 | 86 | | |
97 | | - | |
| 87 | + | |
98 | 88 | | |
99 | 89 | | |
100 | 90 | | |
| |||
0 commit comments