This code has been working for a couple of years but, for an unknown reason to me, has stopped working.
This function continues to create Tasks correctly.
def send_task():
from google.appengine.api import taskqueue
json_data = ...
task = taskqueue.Task(url=..., countdown=2, payload=json_data)
task.add()
The handling url is passed to:
in db.py
openings_service = Service()
in controller...
@openings_service.json
def opening_task_queue():
body_data = request.body.getvalue()
For the last couple of years `body_data` was populated and processing continued.
But last week, without change to my code, request.body was no longer present.
I had been running with Web2py R-2.14.6 but an upgrade to R-2.15.0b2 broke how I needed to declare functions.
Where I had been using function headings with no parameters:
@openings_service.json
def submit_openings():
I now needed to declare:
@openings_service.json
def submit_openings(openings):
Does anyone know why?
And does that relate to the error I detail at the top of this post?