Thanks for posting this question. Just to clarify, do the same config/code works fine locally?
You have a line that says “ds, so join needed”; you may test/validate by removing anything between the parameter gets and the return statement.
To fetch more info, you may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal.
-In the left navigation, click on Diagnose and solve problems
- Review and run – ‘Availability and Performance’, ‘Network troubleshooter’ and ‘Configuration and Management’
Also, review Enable and review logs to fetch more details about the error.