@Zoddo Thanks for reaching out. Please make sure that you have defined all the application settings in your function app as mentioned here and verified the usage section as this could be one of the reason of 500 error when you have not defined all the setting correctly in your azure function app.
There could be multiple reasons for 500 errors and the suggestion would be to validate the Diagnose and solve problems on your function app to know more details on any issue with your function app and the action plan suggested if any.