问题
出现容器初始化异常。
{
"errorCode": -1,
"errorMessage": "Failed to initialize the container. Please confirm that the container can be started locally.",
"statusCode": 405
}
原因
出现错误的原因很多,具体流程可以看腾讯云的文档:地址
这里的问题是 scf_bootstrap
文件是本地上传的,导致出现与unix编码不一致的换行符,无法执行。(执行没权限在腾讯云文档也有方法)
解决方案
- 自行转码
- 或者新建一个文件,重新打一遍。