Function host is not running

孤街醉人 提交于 2020-01-02 01:16:07

问题


I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running." I am not sure where I have to check and what needs to be changed. I tried restart but still no luck.


回答1:


This usually means that there is some bad configuration in your function app which is causing the host to fail to start up. Things like having an invalid host.json or an invalid proxies.json file are a possible cause.

To diagnose, it's best to look at the function host logs. If you open your function app in the Azure portal and turn on log streaming, you should be able to get more information about what's going on.

If you're not able to find anything, please let us know the name of your function app either publicly or privately and we can help take a look at the logs for you.




回答2:


I was getting this after adding dependency injection support - I had an error in the startup class which stopped the host from starting.




回答3:


Thanks for responding. I see that time trigger function in it is getting an error thats causing host to stop.I resolved the error now Function host is working fine.




回答4:


In Azure Function v2 you are required to set the runtime version in host.json



来源:https://stackoverflow.com/questions/49161601/function-host-is-not-running

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