I started having a mysterious error while saving annotations. A red window appears saying "ERROR: couldn't save annotations. Make sure the server is running correctly.
The log shows the following:
INFO: 73.169.118.24:49716 - "POST /get_session_questions HTTP/1.1" 200 OK
2021-12-28 22:48:17 [ ERROR] routing.py:111 : Error getting request body:
Nothing else, even with verbose
logging. The server is still up, and works for other sessions. The document doesn't make it to the database.
I am using a simple custom NER + choice recipe, that I've been using for a long time, nothing has changed. And same kind of texts. It started happening in old Prodigy, v 1.10 or so. I installed the latest one, but the error persists. I experimented with several datasets, I'm able to save about 20-30 records, and then this happens again. Nothing special is about the document that cannot be saved, but I tried different sessions on the same annotation process, and it stops working on the same doc. After I remove the offending doc from the input, saving works for another 10-20 records, and then it happens again. The offending document can be saved fine in a separate dataset.
I was wondering if anyone have seen this error. Google found nothing except for this :
but I am not sure what to make out of it, since I am not familiar with prodigy code.
I am using sqlite database, and it is approaching 1G.
I added before_db
callback to the recipe, but that code doesn't get executed. validate_answer
doesn't get executed, either - for the doc that causes the error. For other sessions, that haven't reached the offending doc yet, those 2 callbacks work.