开发者社区 > 云原生 > 正文

现在报错这个"Function instance exited unexpected(code 1,

现在报错这个

"Function instance exited unexpected(code 1, message:operation not permitted) with start command './main '.\nLogs:2022/08/29 12:09:56.196305 start http\r\n2022/08/29 12:09:56.197723 expected ali FC environment variables [FC_RUNTIME_API] are not defined"

展开
收起
云上静思 2022-08-29 20:28:42 1187 0
1 条回答
写回答
取消 提交回答
  • 您选的是custom runtime go的环境吧? 这个错误发生的原因是您选择了fc-runtime-go-sdk来开发编译,这个sdk是适用于标准go1 runtime的, custom runtime go环境不能用这个, custom runtime go需要您自行实现一个http server

    此答案来自钉钉群“阿里函数计算官网

    2022-08-29 22:56:44
    赞同 展开评论 打赏
问答分类:
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
Customer Success Dashboard GoD 立即下载
Why you should care about data layout in the file system 立即下载
Genomic Data Processing 立即下载