文档

Custom Container的监听端口一定要和HTTP Server的监听端口一致吗?

更新时间:
一键部署

是的。Custom Container的监听端口(CAPort)默认是9000。如果Custom Container使用默认的监听端口,那么您实现的Custom Container 的HTTP Server监听的端口也必须是9000。 如果Custom Container使用的监听端口是8080,那么您实现的Custom Container的HTTP Server监听的端口也必须是8080。

Custom Container启动的HTTP Server一定要监听0.0.0.0:CAPort或*:CAPort端口。如果您使用127.0.0.1:CAPort端口,会导致请求超时,出现以下错误:
{
"ErrorCode":"FunctionNotStarted",
"ErrorMessage":"TheCA'shttpservercannotbestarted:ContainerStartDuration:25000000000.PingCAfaileddueto:dialtcp21.0.5.7:9000:getsockopt:connectionrefusedLogs:2019-11-29T09:53:30.859837462ZListeningonport9000"
}
  • 本页导读 (1)
文档反馈