proycon / flat

FoLiA Linguistic Annotation Tool -- Flat is a web-based linguistic annotation environment based around the FoLiA format (http://proycon.github.io/folia), a rich XML-based format for linguistic annotation. Flat allows users to view annotated FoLiA documents and enrich these documents with new annotations, a wide variety of linguistic annotation types is supported through the FoLiA paradigm.
GNU General Public License v3.0
110 stars 15 forks source link

Implement better error handling when uploading an invalid document to the public upload endpoint #162

Open proycon opened 3 years ago

proycon commented 3 years ago

Reported by @dietervu when uploading an empty file via piereling:

Unexpected response from FLAT (HTTP 500, target was https://flat.cls.ru.nl): 
\Request Method: | POST
-- | --
http://flat.cls.ru.nl/pub/upload/
3.1.3
TypeError
string indices must be integers
/usr/local/lib/python3.8/dist-packages/flat/views.py, line 538, in upload_helper