Monday, 15 July 2013

php - GAE Task Queues and Error 302 "App Error" -


I am trying to use the work on GAE for some async processes.

I can get into the job in the queue, but I am getting the error 302 "App Error" in the log and they are just constantly trying again.

I am doing this in CodeIgniter, so I am thinking that the URL parameter is wrong?

code:

  $ task = new pushtask ('/ path / to / endpoint', ['id' = & gt; $ id]); $ Task_Name = $ Task- & gt; Add ();  

The path to the end point is relative to the domain, but I think that may be the problem. Using Site_url () or base_url () does not work!

My end point controller is set to use POST data:

  $ id = $ this- & gt; Input-> Post ('id');  

app.yaml:

Applications: & lt; Project-name & gt; Version: 1 runtime: php API_version: 1 thread: true handlers: - url: /.* script: index.fp

I had the same problem when an exiting program was migrating. There were several files in the work, and one of them had an additional "header (url) return", 302 and repeated attempts were made. Perhaps something similar is the reason for your problem.

I have also come to know that any error in the code generates a header response outside the 200-299 range, due to retrying the job. As my job is an email that is sent in the error, I have to give dozens of clients of the same email against extra security against task_retry_limit: 0 with a Qi. Yll file is added.


No comments:

Post a Comment