I have deployed a Cloud Function to make a simple POST
request when a file is uploaded to my storage bucket.
The function looks like this:
import requests
def hello_gcs(event, context):
r = requests.post('http://192.168.2.198:8000/api/upload-data', data = {'file':event['name']})
Whenever I upload a file to the bucket I get a function finished with status: timeout. I found some similar questions on stack but nothing solve the problem. Does anyone see the issue? Thanks in advance.
http://192.168.2.198:8000
is the right url? – Yashcurl
? – pepoluan192.168.2.198
suggests you should be in the same network. Try the same command from post man on the other machine. i think it will not work – Yash