Finally this was solved. You can see details here
https://stackoverflow.com/questions/52999203/error-302-running-cron-and-loginadmin-in-app-yaml-in-google-app-engine
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this
Hello Pedo,
When you create a handler for cron job, it should execute any tasks that
you want to be scheduled. To indicate success, the handler should return
with HTTP status code between 200 and 299. You can find about this in the
third point of the “Creating a cron job“ section of this doc
Hi,
I've tested with this app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /hellocron
script: main.app
login: admin
secure: always
But nothing changed. Could you give me more details about how to test what
you told me?
Thanks
El mié., 31 oct. 2018 a las 16:5
Hi,
Notice that the URL you run in chrome (
https://myappname.appspot.com/hellocron) is SSL protected. It could be that
the URL which cron is using is 'http' which outputs the 302. So the request
to 'http' is being redirected 'https'.
As you have set 'login: admin' for your cron job handler in
Hi,
I'm using this handler in app.yaml
-- app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /hellocron
script: main.app
login: admin
When I run it on google chrome with this url (
https://myappname.appspot.com/hellocron) it's working, it
Your cron correctly calls /hellocron. The 302 error is returned from the
call, so your handler needs attention, not cron. Error code 302 means
"Found: Resource temporarily located elsewhere according to the Location
header". You may read more detail on the "HTTP Status and Error Codes for
JSON"
(Note: I work on standard enviroment).
I tested something more simple and I had the same error:
--- app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /hellocron
script: main.app
login: admin
--- cron.yaml
cron:
- description: "hellocron"
url: /he
Hello Pedro,
You have employed a URL that differs somewhat of what is expected in the
cron.yaml configuration file: url:
/processdate?from=2016-03-01&until=2016-03-31. This URL indicates a time
interval, when the URL in your app is expected instead, to which you want
the Cron service to send