You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
首先按照s命令,初始并创建Netcore示范容器。使用阿里云函数
然后不经任何修改,s deploy完成后。
使用http url 半天没有Response,进入阿里云函数后台,开启了日志系统(注:真的有必要加入提示初始化项目时并开通日志系统)
报错信息为 Function instance health check failed on port 9000 in 120 seconds.
同时日志里看见他监听了 http://[::]:80
根据 错误处理 #实例健康检查失败(Function instance health check failed)
Describe the bug
首先按照
s
命令,初始并创建Netcore示范容器。使用阿里云函数然后不经任何修改,
s deploy
完成后。使用http url 半天没有Response,进入阿里云函数后台,开启了日志系统(注:真的有必要加入提示初始化项目时并开通日志系统)
报错信息为
Function instance health check failed on port 9000 in 120 seconds.
同时日志里看见他监听了 http://[::]:80
根据 错误处理 #实例健康检查失败(Function instance health check failed)
得知需要将云函数配置的端口,与应用程序绑定的端口一致、
根据云函数配置、文档、以及项目中的 yaml/json都用的9000。 那么他Netcore应用本身仍然会监听80端口?
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Client:
Cloud integration: v1.0.31
Version: 20.10.24
API version: 1.41
Go version: go1.19.7
Git commit: 297e128
Built: Tue Apr 4 18:28:08 2023
OS/Arch: windows/amd64
Context: default
Experimental: true
Additional context
解决方法。修改Program.cs, 让程序本身监听 0.0.0.0:9000
我不知道程序模板是从哪来的,以及s命令会不会修改模板。所以还得请你们确认并修改。
The text was updated successfully, but these errors were encountered: