【问题标题】:azure function Failed error message with no node.js errors logging天蓝色函数失败的错误消息,没有 node.js 错误日志记录
【发布时间】:2019-02-19 18:04:13
【问题描述】:

在 Azure Function 门户日志中,我只收到此失败消息,但没有其他 node.js 错误。为什么?

[错误] 执行“Functions.BlobTriggerJS1”(失败,Id=357b9990-7a36-4e48-a872-979c562de568)

我什至尝试将 context.log 放入我的函数中,如下面的代码。没有任何记录。我需要在门户中进行调试,因为我需要了解为什么函数不会将上传的 PDF blob 转换为图像。需要那个触发器。但我不知道是什么导致了错误。
谢谢, 唐尼

pdf2img.convert(input, function(err, info) {
        if (err) {
            context.log(err);
             context.done()

            }
        else {
            context.log(info);

            context.done()
        }
    });

2018-09-14T22:51:14 欢迎您,您现在已连接到日志流服务。 2018-09-14T22:52:08.633 [信息] 执行“Functions.BlobTriggerJS1”(原因=“检测到新 blob:pdfblobs/sharonsparks_5pages.pdf”,Id=357b9990-7a36-4e48-a872-979c562de568) 2018-09-14T22:52:18.805 [信息] JavaScript blob 触发函数处理 blob 名称:sharonsparks_5pages.pdf Blob 大小:305669 字节 2018-09-14T22:52:18.813 [信息] dirD:\home\site\wwwroot\BlobTriggerJS1 2018-09-14T22:52:19.030 [错误] 执行“Functions.BlobTriggerJS1”(失败,Id=357b9990-7a36-4e48-a872-979c562de568)

【问题讨论】:

    标签: node.js azure


    【解决方案1】:

    我想出了如何在 VSCode 中使用 Azure Functions 扩展来查看调试信息。

    【讨论】:

    • 可能会进一步解释
    猜你喜欢
    • 2014-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-07
    • 1970-01-01
    • 2013-09-29
    • 2017-02-11
    相关资源
    最近更新 更多