函数计算的go版本的SDK,在验函数计算 3.0,helloworld测试代码有错误怎么解决?

{
"RequestId": "1-658149d0-feb55212a84c170c3f74ead1",
"Code": "CAExited",
"Message": "Function instance exited unexpectedly(code 1, message:operation not permitted) with start command './main '.\nLogs:2023/12/19 15:44:16.845417 expected ali FC environment variables [FC_RUNTIME_API] are not defined"
}

函数计算的go版本的SDK,在验函数计算 3.0,helloworld测试代码有错误怎么解决?但是切换回 函数计算 2.0, 正常了。

展开
收起
小小鹿鹿鹿 2023-12-26 12:30:57 77 分享 版权
1 条回答
写回答
取消 提交回答
  • 起来你选择runtime类型为custom,却使用了golang runtime sdk。
    建议参考文档改代码,不要用go runtime sdk。此回答来自钉群阿里函数计算官网客户。

    2023-12-26 15:01:36
    赞同 展开评论

快速交付实现商业价值。

还有其他疑问?
咨询AI助理