Azure Function: Insufficient memory to continue the execution of the program

人走茶凉 提交于 2020-01-16 05:23:04

问题


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.

Anyone have any clue how to debug this?

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.

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?


回答1:


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!



来源:https://stackoverflow.com/questions/59246489/azure-function-insufficient-memory-to-continue-the-execution-of-the-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!