My objective is to develop Python scripts that read the current messages in the client's Gmail inbox, and read the live messages coming through the client's Gmail inbox. This data will eventually by analyzed by another script, eventually categorized for the purpose of protecting the client against malicious emails. I have two scripts, being PythonFileEMP.py and webhook.py. PythonFileEMP.py deals with the historical messages in the inbox, while webhook.py deals with the live messages coming through the inbox while it is running. The issue is that no live test emails are coming through while webhook.py is running, but PythonFileEMP.py is reading all of the 5 recent historical emails successfully. I suspect this issue is associated with how the new message is transferred between Google Cloud Run and the webhook? My suspicions are pointed in this direction because the Cloud Run logs show POST 200 success when live test emails are sent (the test emails are logged correctly). Also, when testing the webhook locally through a curl command in PowerShell, the webhook is successfully triggered. For some reason the test emails just aren't visible in my webhook logging/output in pycharm. Info that might be useful: The webhook is deployed on Google Cloud Run. '--allow-unauthenticated' was set during deployment. The push subscription is configured to point to https://webhook-service-xxxx.australia-southeast1.run.app/webhook. The webhook is containerized using Docker with a Dockerfile and requirements.txt. Flask is running on host=0.0.0.0 and port=8080. Why is this happening and how do you fix this? Thanks in advance Continue reading...