Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure function returns HTTP ERROR 404

I have several Azure functions published and all but 2 of them work fine. The two that don't work are named "AdminData" and "AdminImage" and will be used to feed data to an administrative page. The code compiles fine, deploys fine, everything in the Azure dashboard looks fine but when I try calling them I always get the 404 Not Found error.

like image 949
Jay13 Avatar asked Dec 19 '25 12:12

Jay13


1 Answers

It turns out the issue is that an Azure function name can't start with "Admin". I only found this out after hours of trial and error because no errors or warnings were thrown when the code was compiled or deployed. A subsequent search once I knew what the problem was turned up an issue report in github so it's a known problem; Cannot have [FunctionName] starting with 'admin' #141

This was a very frustrating problem that took a lot of time to figure out so hopefully, this post will help someone else avoid this trap.

like image 135
Jay13 Avatar answered Dec 22 '25 09:12

Jay13



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!