DEV Community

Discussion on: Build a Student Feedback Analyzer with Blazor, Azure Functions, Azure Static Web Apps and Azure Cognitive Services

Collapse
 
oliverwolffe profile image
oliverwolffe

Thanks for sharing this article - I've found it really helpful. I've used your tutorial as the basis for a simpler use case to help me learn (utilising Dapper as well), but have come into an issue. Calls to the Api functions get a 503 error ("Function host is not running"). I get a similar issue running locally. Did you have this issue at all?

For ref have included what I've done below.

my code: github.com/oliverwolffe/hundredcli...
the site: lemon-moss-044d90203.azurestaticap...

Am fairly new to C# and Blazor so perhaps I've gone wrong in where I've deviated from your build.

Collapse
 
ashirwadsatapathi profile image
Ashirwad Satapathi

Hi @oliverwolffe , Glad you found it resourceful. Did you configure your solution to start multiple projects. With reference to error, I'm assuming that your function project i.e, API project has not started while the client project has started. I will definitely give it a look later tomorrow. In the meanwhile, can you please configure your solution and try to start multiple projects in your solution.

Collapse
 
oliverwolffe profile image
oliverwolffe

Thank you for getting back to me! I didn’t realise that this configuration was required but that’s very helpful to know - I will have a look at this. I’m using VS Code rather than VS, which I think is meant to start both projects at once.

Thread Thread
 
ashirwadsatapathi profile image
Ashirwad Satapathi

Yes. That's what I meant. Hope it helps 😇

Thread Thread
 
oliverwolffe profile image
oliverwolffe

I managed to figure out the issue by running the Api project on it's own as an Azure function. There were a couple of .net v5 dependencies which don't work with Functions, so the Api project wasn't starting up. After I downgraded these to 3.1.x the Api works!