函数计算,函数计算中通过python调用C的so动态库报错:Process exited unexp

函数计算,函数计算中通过python调用C的so动态库报错:Process exited unexpectedly before completing request,是什么原因?

展开
收起
芬奇福贵 2023-10-10 16:16:09 87 发布于北京 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 函数本身逻辑有问题, 导致执行环境退出,可以增加日志debug排查导致问题的代码。

    如果是custom runtime 出现这种情况, 最有可能是因为实现的 custom runtime 的 http server 没有文档中的第3个条件:
    connection 最好设置为 keep alive,请求超时时间至少设置在 15 分钟以上

    比如 nodejs express:
    var server = app.listen(PORT, HOST);
    server.timeout = 0; // never timeout
    server.keepAliveTimeout = 0; // keepalive, never timeout

    参考https://help.aliyun.com/zh/fc/support/how-to-handle-the-process-exited-unexpectedly-before-completing-request-error

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

    2023-10-10 21:19:46 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论

快速交付实现商业价值。

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

你好,我是AI助理

可以解答问题、推荐解决方案等