BethanysPieShopHR icon indicating copy to clipboard operation
BethanysPieShopHR copied to clipboard

Update Employee endpoint is never hit

Open J35P1N opened this issue 2 years ago • 0 comments

Hi, I've been following this through recently and I'm essentially stuck on the saving data portion of the course.

The first issue I encountered was related to the following:

Blazor WebAssembly TypeError: Failed to fetch

I was receiving this at the point the HttpClient made the put request to edit an employee and the only way was able to stop an exception occuring was to following this guide:

https://www.thebestcsharpprogrammerintheworld.com/2021/04/07/blazor-webassembly-typeerror-failed-to-fetch/

After then getting this working I ran the application in debug and found that the edit endpoint within the solution is never hit. I can see that on all other API requests I see the breakpoints I have setup in the API solution being triggered but for the put method this is not the case. Any pointers? I've tried adding a web.config file to the API solution to disable WebDav which is my usual port of call for API projects when WebDav appears to be blocking the PUT keyword but this doesn't seem to work in this case. I'm at a loss as even pulling down and running your solution doesn't seem to work for me.

J35P1N avatar Mar 21 '22 17:03 J35P1N