JavaScript 测试版 Azure 函数异常
JavaScript BETA Azure Function Exception
我创建了一个新的 JavaScript timerTrigger
。 运行 它在版本 ~1
上运行良好。
我将版本切换到 BETA
并再次 运行 并得到:
2017-10-26T14:17:55 Welcome, you are now connected to log-streaming service.
2017-10-26T14:17:57.938 Function started (Id=b196bcc3-c8ae-493e-84c7-9e037dba7141)
2017-10-26T14:17:58.565 Exception while executing function: Functions.Wrike. System.Private.CoreLib: One or more errors occurred. (Worker process with pid 7820 exited with code 1) (Worker process with pid 6964 exited with code 1) (Worker process with pid 6436 exited with code 1). Worker process with pid 7820 exited with code 1.
2017-10-26T14:17:58.907 Function completed (Failure, Id=b196bcc3-c8ae-493e-84c7-9e037dba7141, Duration=957ms)
这是我的 index.js
:
module.exports = function (context, myTimer) {
var timeStamp = new Date().toISOString();
if(myTimer.isPastDue)
{
context.log('JavaScript is running late!');
}
context.log('JavaScript timer trigger function ran!', timeStamp);
context.done();
};
今天 "beta" 中的一个常见问题是您的 Node.js 版本最终不正确。我们正在为此进行一些改进,包括默认为 8.4.0,以防您未设置它,并改进错误消息,当它没有以某种方式设置不正确时。
确保您已将 Beta 版 Azure Functions 的 Node.js 版本设置为高于 8.4.0。我们通常会尝试继续测试 8.x 的最新版本,并将 "GA" 2.0 用于 8.x LTS。
我创建了一个新的 JavaScript timerTrigger
。 运行 它在版本 ~1
上运行良好。
我将版本切换到 BETA
并再次 运行 并得到:
2017-10-26T14:17:55 Welcome, you are now connected to log-streaming service.
2017-10-26T14:17:57.938 Function started (Id=b196bcc3-c8ae-493e-84c7-9e037dba7141)
2017-10-26T14:17:58.565 Exception while executing function: Functions.Wrike. System.Private.CoreLib: One or more errors occurred. (Worker process with pid 7820 exited with code 1) (Worker process with pid 6964 exited with code 1) (Worker process with pid 6436 exited with code 1). Worker process with pid 7820 exited with code 1.
2017-10-26T14:17:58.907 Function completed (Failure, Id=b196bcc3-c8ae-493e-84c7-9e037dba7141, Duration=957ms)
这是我的 index.js
:
module.exports = function (context, myTimer) {
var timeStamp = new Date().toISOString();
if(myTimer.isPastDue)
{
context.log('JavaScript is running late!');
}
context.log('JavaScript timer trigger function ran!', timeStamp);
context.done();
};
今天 "beta" 中的一个常见问题是您的 Node.js 版本最终不正确。我们正在为此进行一些改进,包括默认为 8.4.0,以防您未设置它,并改进错误消息,当它没有以某种方式设置不正确时。
确保您已将 Beta 版 Azure Functions 的 Node.js 版本设置为高于 8.4.0。我们通常会尝试继续测试 8.x 的最新版本,并将 "GA" 2.0 用于 8.x LTS。