@Terry HL Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that you are encountering an issue while trying to run a Python program on Azure Function App. The program integrates with Google API and Notion API for calendar synchronization and runs successfully locally on their machine. However, when deployed to Azure Function App, it fails to run.
Please follow the below action plans for now:
- Could you please check if all the required libraries and dependencies for Google API and Notion API are installed on the Azure Function App environment. Follow the steps mentioned here
- Please check if the suggestion provided here helps ?
- Could you please enable the Application insight logs for the FunctionApp and check if there are any invocation exceptions. You can enabled the AppInsights as explained here.You can enabled the AppInsights as explained here.
- Please check Functions metrics for the HTTP Server Errors at the time of the issue.
- Please check the Function App detectors by navigating to the Diagnose and Solve Problems section in the Azure Portal for the Functions as shown below: You can rely on the Function Executions and Errors setting:
- You can also query the FunctionLogs as shown below:
Note: If none of the above steps help, Please share the below details over an email at AzCommunity@microsoft.com ( with subject "Attn: Naveen") and include the below details:
- Your Azure Function Name
- You Azure Function App resource URI in below format: /subscriptions/XXXXXXXXXX/resourceGroups/XXXXXX/providers/Microsoft.Web/sites/XXXXXX
- Most recent UTC time of the actual issue where you received HTTP 500 error
I will look at the backend logs to identify the root cause.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.