How to do OAuth-requiring operations in a GAE cron job?

前端 未结 1 1851
慢半拍i
慢半拍i 2021-01-13 03:39

This post is a followup to How to do OAuth-requiring operations in a GAE Task Queue?. As suggested by bossylobster in this post, I did try to hardcode the use

相关标签:
1条回答
  • 2021-01-13 04:27

    How is cron supposed to bypass that?

    Make sure the cron url is configured with login: admin and not login: required. Cron jobs "get past the login prompt" automatically. See the documentation for more information.

    How can I debug what's going on?

    Since a cron job is started by a GET request to a specific url, you should be able to debug the job by just making a GET request to that url and either see what errors the development server makes or see what is in the logs for the GET request.

    0 讨论(0)
提交回复
热议问题