Skip to content Skip to sidebar Skip to footer

Calling Cloud Function From App Engine Runtime Python 3.7

I have an App Engine service, running Python 3.7, that needs to call and get a response from one of my Cloud Functions via the https.oncall trigger. I thought I could do so with th

Solution 1:

You're not setting the Content-Type for your request. Starting with requests==2.4.2, you can use the json parameter instead to pass a dictionary and automatically set the Content-Type:

requests.post(url, json={"foo": "bar"})

Post a Comment for "Calling Cloud Function From App Engine Runtime Python 3.7"