doccano-client
doccano-client copied to clipboard
Fix/task arg
Description
When the task type is not provided, the server gives a 500 error for /post_doc_upload. Tested with Doccano v.1.7.0.
Also, fix "NameError: name 'request' is not defined."
Similar fixes are proposed in https://github.com/doccano/doccano-client/pull/68 and https://github.com/doccano/doccano-client/pull/72. As far as post_doc_upload, depending on your doccano version you may have additional errors. I've addressed those in this pull request. As discussed in the most recent issues, an optimal solution is to make both versions of doccano work by detecting the version and adjusting the endpoints called accordingly. For the time being, the minimal "request" fix and an useable pypi version for the 1.5 setup is desired.