[google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-11-18 Thread Pedro Perez Garcia
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

[google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-11-01 Thread 'Mohammad I (Cloud Platform Support)' via Google App Engine
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

Re: [google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-11-01 Thread Pedro Perez Garcia
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

Re: [google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-10-31 Thread 'Sam (Google Cloud Support)' via Google App Engine
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

Re: [google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-10-30 Thread Pedro Perez Garcia
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

Re: [google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-10-30 Thread 'George (Cloud Platform Support)' via Google App Engine
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"

Re: [google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-10-29 Thread Pedro Perez Garcia
(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

[google-appengine] Re: Error 302 running cron and login:admin in app.yaml in google app engine

2018-10-29 Thread 'George (Cloud Platform Support)' via Google App Engine
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