函数计算这什么报错呀?

函数计算这什么报错呀?Process exited unexpectedly before completing request (duration: 213ms, maxMemoryUsage: 174.05MB)

展开
收起
三分钟热度的鱼 2024-03-27 16:11:07 63 分享 版权
1 条回答
写回答
取消 提交回答
    • 函数本身逻辑错误,多见于下游数据库问题,示例代码如下。您可以增加日志功能,根据日志调试解决。
    # -*- coding: utf-8 -*-
    import os
    
    def handler(event, context):
        logger = logging.getLogger()
        logger.info('hello world')
        os._exit(-1)
        return 'hello world'
    
    • 如果您的函数是Custom Runtime或者Custom Container函数,可能创建HTTP Server时,Connection未设置为Keep-Alive,且函数的执行超时时间小于15分钟。

    image.png

    ——参考链接

    2024-07-15 21:21:30
    赞同 展开评论
问答分类:
问答标签:
问答地址:

快速交付实现商业价值。

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