【发布时间】:2022-10-19 19:43:08
【问题描述】:
我在我的项目中使用 1.11.0 版本的 com.microsoft.azure.azurefunctions.gradle.plugin,并且在运行“gradlew clean azureFunctionsRun”时可以在本地成功运行它。
我的问题是,在步骤 azureFunctionsPackage 中最多需要 7m 41 秒(“第 8 步,共 8 步:如果需要,安装功能扩展”是它花费大部分时间的地方)。
调试时,我看到https://rt.services.visualstudio.com:443 出现“读取超时”
2022-10-06T11:27:17.709+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {s}->https://rt.services.visualstudio.com:443][total kept alive: 3; route allocated: 1 of 20; total allocated: 3 of 200]
2022-10-06T11:27:17.711+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.wire] http-outgoing-3 << "[read] I/O error: Read timed out"
2022-10-06T11:27:17.711+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased: [id: 3][route: {s}->https://rt.services.visualstudio.com:443][total kept alive: 2; route allocated: 1 of 20; total allocated: 3 of 200]
还有https://dc.services.visualstudio.com:443:
2022-10-06T11:31:28.280+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {s}->https://dc.services.visualstudio.com:443][total kept alive: 3; route allocated: 2 of 20; total allocated: 3 of 200]
2022-10-06T11:31:28.281+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.wire] http-outgoing-2 << "[read] I/O error: Read timed out"
2022-10-06T11:31:28.281+0200 [DEBUG] [com.microsoft.applicationinsights.core.dependencies.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased: [id: 2][route: {s}->https://dc.services.visualstudio.com:443][total kept alive: 2; route allocated: 2 of 20; total allocated: 3 of 200]
但总是在大约 7 分 41 秒后执行结束:
Failed to check update for Azure Functions Core Tools
Failed to check update for Azure Functions Core Tools
Function extension installation done.
Successfully built Azure Functions.
有什么方法可以阻止“检查 Azure Functions 核心工具的更新”吗?
或任何其他方式来解决“超时”问题?
用过的:
- Java 17
- Gradle 7.5.1
- Ubuntu 22.04
- Azure 函数插件 1.11.0
【问题讨论】:
标签: azure-java-tools