我为sonarqube调出了最新的docker图像,图像运行正常。sonarqube服务器正在监听localhost:9000。当我运行dotnet sonarscanner begin来分析asp.net Core3.1项目时,过了一段时间后,我得到了超时错误。下面是该命令的日志
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
18:47:29.653 Updating build integration targets...
18:49:09.803 Failed to request and parse 'http://localhost:9000/api/server/version': The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
18:49:09.811 The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
18:49:09.814 Pre-processing failed. Exit code: 1API请求通过Postman工作得很好。失败的原因可能是什么?
发布于 2021-08-02 07:53:42
在我尝试将端口9000更改为8000并重试后,它工作了!
ports:
- "8000:9000"https://stackoverflow.com/questions/66977675
复制相似问题