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

在阿里函数计算里这是什么情况,正常使用呢,突然就不管用,测试就报这个错误怎么办?

在阿里函数计算里FunctionCompute python3 runtime inited.
FC Invoke Start RequestId: 1-656c078f-9a0dcabc96fc7ba1dd85382a
2023-12-03 12:44:01 Bfans 读取配置文件失败,请检查配置文件格式是否正确: Expecting value: line 1 column 1 (char 0)
FC Invoke End RequestId: 1-656c078f-9a0dcabc96fc7ba1dd85382a, Error: Process exited unexpectedly before completing request (duration: 481ms, maxMemoryUsage: 26MB)这是什么情况,正常使用呢,突然就不管用,测试就报这个错误

展开
收起
小小鹿鹿鹿 2023-12-13 13:27:15 19 0
1 条回答
写回答
取消 提交回答
  • 函数执行异常退出,报错Process exited unexpectedly before completing request怎么办?https://help.aliyun.com/zh/fc/support/how-to-handle-the-process-exited-unexpectedly-before-completing-request-error?spm=a2c4g.11186623.0.i298

    函数执行异常退出,可能存在以下问题,你可以根据不同问题采取不同的措施。
    函数本身逻辑错误,多见于下游数据库问题,示例代码如下。您可以增加日志功能,根据日志调试解决。

    -- coding: utf-8 --

    import os

    def handler(event, context):
    os._exit(-1)
    return 'hello world'
    如果您的函数是Custom Runtime或者Custom Container函数,可能创建HTTP Server时,Connection未设置为Keep-Alive,且函数的执行超时时间小于15分钟。更多信息,请参见HTTP Server配置要求。

    2023-12-13 17:07:50
    赞同 1 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 热门讨论

    热门文章

    相关电子书

    更多
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载
    All in Serverless 阿里云核心产品全面升级 立即下载