I added login: Admin to app.yaml like documentation (https://cloud.google.com/appengine/docs/standard/python/config/appref#example) is described, but I still have a 302 erro when runing a task with cron in google app engine.
I have this app.yaml runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: main.app login: admin And this cron.yaml cron: - description: "Dashboard" url: /processdate?from=2016-03-01&until=2016-03-31 schedule: every day 23:46 timezone: Europe/Madrid I obtain this error 0.1.0.1 - - [26/Oct/2018:00:49:40 +0200] "GET /processdate?from=2016-03-01&until=2016-03-31 HTTP/1.1" 302 355 - "AppEngine-Google; (+http://code.google.com/appengine)" "p201309.appspot.com" ms=74 cpu_ms=12 cpm_usd=3.9674e-8 loading_request=0 instance=00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a app_engine_release=1.9.65 trace_id=3c92edad090b5a57d249bd92be246e58 httpRequest: { status: 302 } insertId: "5bd248840005a3aae7fa2111" labels: { clone_id: "00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a" } logName: "projects/p201309/logs/appengine.googleapis.com%2Frequest_log" operation: { first: true id: "5bd2488400ff047fe69ec5d94d0001657e62692d70682d3230313330390001323031383130323674303033383339000100" last: true producer: "appengine.googleapis.com/request_id" } protoPayload: { @type: "type.googleapis.com/google.appengine.logging.v1.RequestLog" appEngineRelease: "1.9.65" appId: "e~bi-ph-201309" cost: 3.9674e-8 endTime: "2018-10-25T22:49:40.369327Z" finished: true first: true host: "p201309.appspot.com" httpVersion: "HTTP/1.1" instanceId: "00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a" instanceIndex: -1 ip: "0.1.0.1" latency: "0.074441s" megaCycles: "12" method: "GET" requestId: "5bd2488400ff047fe69ec5d94d0001657e62692d70682d3230313330390001323031383130323674303033383339000100" resource: "/processdate?from=2016-03-01&until=2016-03-31" responseSize: "355" startTime: "2018-10-25T22:49:40.294886Z" status: 302 taskName: "25ed634cde05b07d9a7906f2161d2b16" taskQueueName: "__cron" traceId: "3c92edad090b5a57d249bd92be246e58" traceSampled: true urlMapEntry: "main.app" userAgent: "AppEngine-Google; (+http://code.google.com/appengine)" versionId: "20181026t003839" } receiveTimestamp: "2018-10-25T22:49:40.376251430Z" resource: { labels: { module_id: "default" project_id: "bi-ph-201309" version_id: "20181026t003839" zone: "eu2" } type: "gae_app" } timestamp: "2018-10-25T22:49:40.294886Z" trace: "projects/bi-ph-201309/traces/3c92edad090b5a57d249bd92be246e58" traceSampled: true } I added login: Admin to app.yaml like documentation is described, but I still have a 302 erro when runing a task with cron in google app engine. I have this app.yaml -------------- runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: main.app login: admin -------------- And this cron.yaml -------------- cron: - description: "Dashboard" url: /processdate?from=2016-03-01&until=2016-03-31 schedule: every day 23:46 timezone: Europe/Madrid -------------- I obtain this error -------------- 0.1.0.1 - - [26/Oct/2018:00:49:40 +0200] "GET /processdate?from=2016-03-01&until=2016-03-31 HTTP/1.1" 302 355 - "AppEngine-Google; (+http://code.google.com/appengine)" "p201309.appspot.com" ms=74 cpu_ms=12 cpm_usd=3.9674e-8 loading_request=0 instance=00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a app_engine_release=1.9.65 trace_id=3c92edad090b5a57d249bd92be246e58 httpRequest: { status: 302 } insertId: "5bd248840005a3aae7fa2111" labels: { clone_id: "00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a" } logName: "projects/p201309/logs/appengine.googleapis.com%2Frequest_log" operation: { first: true id: "5bd2488400ff047fe69ec5d94d0001657e62692d70682d3230313330390001323031383130323674303033383339000100" last: true producer: "appengine.googleapis.com/request_id" } protoPayload: { @type: "type.googleapis.com/google.appengine.logging.v1.RequestLog" appEngineRelease: "1.9.65" appId: "e~bi-ph-201309" cost: 3.9674e-8 endTime: "2018-10-25T22:49:40.369327Z" finished: true first: true host: "p201309.appspot.com" httpVersion: "HTTP/1.1" instanceId: "00c61b117c78f767097d6896daa1f8967a815c14a94d54578ac19efa9d50a5077d5a" instanceIndex: -1 ip: "0.1.0.1" latency: "0.074441s" megaCycles: "12" method: "GET" requestId: "5bd2488400ff047fe69ec5d94d0001657e62692d70682d3230313330390001323031383130323674303033383339000100" resource: "/processdate?from=2016-03-01&until=2016-03-31" responseSize: "355" startTime: "2018-10-25T22:49:40.294886Z" status: 302 taskName: "25ed634cde05b07d9a7906f2161d2b16" taskQueueName: "__cron" traceId: "3c92edad090b5a57d249bd92be246e58" traceSampled: true urlMapEntry: "main.app" userAgent: "AppEngine-Google; (+http://code.google.com/appengine)" versionId: "20181026t003839" } receiveTimestamp: "2018-10-25T22:49:40.376251430Z" resource: { labels: { module_id: "default" project_id: "bi-ph-201309" version_id: "20181026t003839" zone: "eu2" } type: "gae_app" } timestamp: "2018-10-25T22:49:40.294886Z" trace: "projects/bi-ph-201309/traces/3c92edad090b5a57d249bd92be246e58" traceSampled: true } -------------- Any idea about what could be the problem or how to solve it? I don't have any problem runing this script in my local machine. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d9b2cfad-6b19-4efb-aec3-d00610a3def8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.