doccano-client icon indicating copy to clipboard operation
doccano-client copied to clipboard

Fix/task arg

Open my-master opened this issue 2 years ago • 1 comments

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."

my-master avatar Jun 24 '22 08:06 my-master

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.

david-engelmann avatar Jun 24 '22 13:06 david-engelmann