Azure功能:内存不足,无法继续执行程序 [英] Azure Function: Insufficient memory to continue the execution of the program

查看:131
本文介绍了Azure功能:内存不足,无法继续执行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在本地运行Azure Functions项目并得到以下错误:

Trying to run an Azure Functions project locally and get the following error:

Insufficient memory to continue the execution of the program.

这种情况发生在记录或启动之前,因此没有任何调试内容。

This happens before anything is logged or startet so there is nothing to debug.

有人知道如何调试吗?

我已经删除了所有代码,删除了所有依赖项。剩下的就是没有实现的默认计时器功能。

I've deleted all the code, removed all dependencies. All there is left is a default timer function with no implementation. It still do not work.

如果我创建了一个新的功能项目func init,一切都会正常。我看不到项目文件,host.json,local.settings.json,function.json等在无效项目与有效项目之间没有任何区别。

If i create a new function project, func init, everything works. I can't see any difference in the project file, host.json, local.settings.json, function.json etc. between the project that do not work and the project that do work.

我正在考虑重新实现项目并复制所有代码,但这是唯一的解决方案吗?

I'm thinking of reimplementing the project and copying over all the code, but is this the only solution?

推荐答案

如果将一个空值添加到local.settings.json文件的Values集合中,则可能会产生此问题。好像是错误或错误消息?我在这里与func家伙创建了一个github问题。 https://github.com/Azure/azure-functions-core- tools / issues / 1732
并提出了修复请求, https://github.com/Azure/azure-functions-core-tools/pull/1735 。希望这会有所帮助!

If you add an empty value ":" into the Values collection in the local.settings.json file, it can create this issue. Seems like a bug, or bad error message? I have created a github issue with the func guys, here. https://github.com/Azure/azure-functions-core-tools/issues/1732 and made a pull request to fix it, https://github.com/Azure/azure-functions-core-tools/pull/1735 . Hope this helps!

这篇关于Azure功能:内存不足,无法继续执行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆