HTTP Triggering Cloud Function with Cloud Scheduler

后端 未结 3 2024
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 18:42

I have a problem with a job in the Cloud Scheduler for my cloud function. I created the job with next parameters:

Target: HTTP

URL

3条回答
  •  情深已故
    2021-02-13 19:26

    Another way to solve the problem is this:

    request.get_json(force=True)
    

    It forces the parser to treat the payload as json, ingoring the Mimetype. Reference to the flask documentation is here

    I think this is a bit more concise then the other solutions proposed.

提交回复
热议问题