Azure在本地运行”;系统找不到指定的文件";在TypeScriptCompiler.CompileAsync()期间
我在VS代码和节点8.9.3中本地运行azure工具,并使用使用“func new”创建的Typescript 2.6.2 azure函数。我不得不将Azure在本地运行”;系统找不到指定的文件";在TypeScriptCompiler.CompileAsync()期间,azure,azure-functions,Azure,Azure Functions,我在VS代码和节点8.9.3中本地运行azure工具,并使用使用“func new”创建的Typescript 2.6.2 azure函数。我不得不将“scriptFile”:“index.ts”、添加到function.json中,以实现这一目标,否则它会抱怨找不到主脚本。但现在它似乎在所有注册中都取得了成功——在不存在的路线上进行了适当的404,但当我与邮递员一起发布或从浏览器获取时,它会发出这样的信息: { "id": "952c0946-bd72-49e7-9f25-c3a8ba
“scriptFile”:“index.ts”、
添加到function.json中,以实现这一目标,否则它会抱怨找不到主脚本。但现在它似乎在所有注册中都取得了成功——在不存在的路线上进行了适当的404,但当我与邮递员一起发布或从浏览器获取时,它会发出这样的信息:
{
"id": "952c0946-bd72-49e7-9f25-c3a8ba8ca236",
"requestId": "954642f2-9b17-43a2-b26f-b63615360301",
"statusCode": 500,
"errorCode": 0,
"message": "Exception while executing function: Functions.CreateAccount -> The system cannot find the file specified",
"errorDetails": "Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.CreateAccount ---> System.ComponentModel.Win32Exception : The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompiler.CompileAsync(String inputFile,TypeScriptCompilationOptions options)
at async Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilation.CompileAsync(??)
at async Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilation.CompileAsync(??)
at async Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilationService.GetFunctionCompilationAsync(FunctionMetadata functionMetadata)
at async Microsoft.Azure.WebJobs.Script.Description.ConditionalJavaScriptCompilationService.GetFunctionCompilationAsync(FunctionMetadata functionMetadata)
at async Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.CompileAndTraceAsync(LogTargets logTargets,Boolean throwOnCompilationError,Boolean suppressCompilationSummary)
at async Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.CreateFunctionTarget(CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.Description.FunctionLoader`1.GetFunctionTargetAsync[T](Int32 attemptCount)
at async Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.GetFunctionTargetAsync()
at async Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.InvokeCore(Object[] parameters,FunctionInvocationContext context)
at async Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(Object[] parameters)
at async Microsoft.Azure.WebJobs.Host.Executors.VoidTaskMethodInvoker`2.InvokeAsync[TReflected,TReturnType](TReflected instance,Object[] arguments)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`2.InvokeAsync[TReflected,TReturnValue](Object instance,Object[] arguments)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,ParameterHelper parameterHelper,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,ParameterHelper parameterHelper,TraceWriter traceWriter,CancellationTokenSource functionCancellationTokenSource)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)
End of inner exception
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken cancellationToken)
at Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()
at async Microsoft.Azure.WebJobs.JobHost.CallAsync(??)
at async Microsoft.Azure.WebJobs.Script.ScriptHost.CallAsync(String method,Dictionary`2 arguments,CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostManager.HandleRequestAsync(FunctionDescriptor function,HttpRequestMessage request,CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.Host.FunctionRequestInvoker.ProcessRequestAsync(HttpRequestMessage request,CancellationToken cancellationToken,WebScriptHostManager scriptHostManager,WebHookReceiverManager webHookReceiverManager)
at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.<>c__DisplayClass3_0.<ExecuteAsync>b__0(??)
at async Microsoft.Azure.WebJobs.Extensions.Http.HttpRequestManager.ProcessRequestAsync(HttpRequestMessage request,Func`3 processRequestHandler,CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ExecuteAsync(HttpControllerContext controllerContext,CancellationToken cancellationToken)
at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)
at async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.WebScriptHostHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)
at async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.SystemTraceHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)
at async System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)"
}
{
“id”:“952c0946-bd72-49e7-9f25-c3a8ba8ca236”,
“请求ID”:“954642f2-9b17-43a2-b26f-B636153603301”,
“状态代码”:500,
“错误代码”:0,
“消息”:“执行函数时异常:Functions.CreateAccount->系统找不到指定的文件”,
“errorDetails”:“Microsoft.Azure.WebJobs.Host.FunctionInvocationException:执行函数时异常:Functions.CreateCount-->System.ComponentModel.Win32Exception:系统找不到指定的文件
在System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo-startInfo)
在System.Diagnostics.Process.Start()中
位于Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompiler.CompileAsync(字符串输入文件,TypeScriptCompileationOptions)
在异步Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilation.CompileAsync(?)
在异步Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilation.CompileAsync(?)
位于async Microsoft.Azure.WebJobs.Script.Description.Node.TypeScript.TypeScriptCompilationService.GetFunctionCompilationAsync(FunctionMetadata FunctionMetadata)
位于async Microsoft.Azure.WebJobs.Script.Description.ConditionalJavaScriptCompilationService.GetFunctionCompilationAsync(FunctionMetadata FunctionMetadata)
位于async Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.CompileAndTraceAncy(LogTargets LogTargets、Boolean ThrowonComilationError、Boolean suppressCompilationSummary)
在异步Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.CreateFunctionTarget(CancellationToken CancellationToken)
在异步Microsoft.Azure.WebJobs.Script.Description.FunctionLoader`1.GetFunctionTargetAsync[T](Int32 attemptCount)
在异步Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.GetFunctionTargetAsync()中
在异步Microsoft.Azure.WebJobs.Script.Description.NodeFunctionInvoker.InvokeCore(对象[]参数,函数调用上下文)
在异步Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(对象[]参数)中
在异步Microsoft.Azure.WebJobs.Host.Executors.VoidTaskMethodInvoker`2.InvokeAsync[TReflected,TReturnType](TReflected实例,对象[]参数)
在异步Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`2.InvokeAsync[TReflected,TReturnValue](对象实例,对象[]参数)
位于async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker调用程序、ParameterHelper ParameterHelper、CancellationTokenSource timeoutTokenSource、CancellationTokenSource functionCancellationTokenSource、Boolean throwOnTimeout、TimeSpan timerInterval、IFunctionInstance实例)
位于async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance实例,ParameterHelper ParameterHelper,TraceWriter TraceWriter,CancellationTokenSource functionCancellationTokenSource)
在异步Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(?)
在异步Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(?)
内部异常结束
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在异步Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(?)
在异步Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken CancellationToken)
在Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()中
在异步Microsoft.Azure.WebJobs.JobHost.CallAsync(??)
位于async Microsoft.Azure.WebJobs.Script.ScriptHost.CallAsync(字符串方法,字典'2参数,CancellationToken CancellationToken)
在异步Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostManager.HandlerRequestAsync(FunctionDescriptor函数、HttpRequestMessage请求、CancellationToken CancellationToken)
位于async Microsoft.Azure.WebJobs.Script.Host.FunctionRequestInvoker.ProcessRequestAsync(HttpRequestMessage请求、CancellationToken取消令牌、WebScriptHostManager脚本HostManager、WebHookReceiverManager WebHookReceiverManager)
在异步Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.c__DisplayClass3_0.b_0(?)
位于async Microsoft.Azure.WebJobs.Extensions.Http.HttpRequestManager.ProcessRequestAsync(HttpRequestMessage请求,Func`3 processRequestHandler,CancellationToken CancellationToken)
在异步Microsoft.Azure.WebJobs.Script.WebHost.Controllers.FunctionsController.ExecuteAsync(HttpControllerContext controllerContext,CancellationToken CancellationToken)
在async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage请求,CancellationToken CancellationToken)
在async System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage请求,CancellationToken CancellationToken)
位于async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.WebScriptHostHandler.SendAsync(HttpRequestMessage请求,CancellationToken CancellationToken)
位于async Microsoft.Azure.WebJobs.Script.WebHost.Handlers.SystemTraceHandler.SendAsync(HttpRequestMessage请求,取消令牌取消