CovidWorld / server

MIT License
17 stars 9 forks source link

Function host is not running. #5

Open seyaobey opened 4 years ago

seyaobey commented 4 years ago

Hello, kudos for open-sourcing your app! I have not used .net in a long time and I'm no more familiar with the .net ecosystem. I've deployed my app to azure. Now when I hit an end-point (just to check everything is working, e.g https://__my_server_url__/api/GetInfectionStatus. I'm getting this error: Function host is not running. A stackoverflow research hints at the host.json not being properly configured. Could you help me on this issue and what is the right host.json configuration? Here the current configuration:

"version": "2.0",
    "logging": {
        "applicationInsights": {
            "samplingExcludedTypes": "Request",
            "samplingSettings": {
                "isEnabled": true
            }
        }
    }

Thanks for the assistance.

Daziko commented 4 years ago

Hi, I suppose you are using VS Code, aren't you ? There is often problem that people deploy wrong folder to azure. Please try those guide from MS https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=csharp. Or you can use visual studio community or free 30 day version of Rider ide. They have better support for deployment of azure services. Your host.json looks absolutely ok. Also this problem is not related with .net ecosystem it is just azure function "ecosystem". You can deploy java, js, phyton, etc ... to the azure function same way.

lyra-halcyon commented 4 years ago

@Daziko This is an open source project, be kind please provide detailed informations because you haven't provided any documentation!