You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the TUS protocol: https://tus.io/protocols/resumable-upload.html#core-protocol there are 3 methods that are to be provided: POST, HEAD and PATCH.
The Current CVAT API only offers two: POST task/{task_id}/data/ and HEAD task/{task_id}/data/{file_id}.
Some clients start the upload using a "HEAD" request, which returns a 405 status (method not allowed).
Expected Behaviour
The HEAD method is provided, returning the current offset as per TUS specification.
Current Behaviour
No HEAD method allowed, which implies no resumption of an upload can be done.
My actions before raising this issue
According to the TUS protocol: https://tus.io/protocols/resumable-upload.html#core-protocol there are 3 methods that are to be provided: POST, HEAD and PATCH.
The Current CVAT API only offers two: POST task/{task_id}/data/ and HEAD task/{task_id}/data/{file_id}.
Some clients start the upload using a "HEAD" request, which returns a 405 status (method not allowed).
Expected Behaviour
The HEAD method is provided, returning the current offset as per TUS specification.
Current Behaviour
No HEAD method allowed, which implies no resumption of an upload can be done.
Steps to Reproduce (for bugs)
Using the aiotus TUS client library (https://aiotus.readthedocs.io/en/latest/), test code is this one:
This will yield in the logs:
Context
The task I was working on was to set up an automatic uploader script that works from a local application producing pictures to be annotated.
Your Environment
git log -1
): n/a - using docker tag v2.2.0docker version
(e.g. Docker 17.0.05): 20.10.21Logs from `cvat-server` container
2022-11-10 13:01:53,776 DEBG 'runserver' stderr output:
[Thu Nov 10 13:01:53.776822 2022] [wsgi:error] [pid 67:tid 139769879004928] [remote 172.18.0.7:51930] [2022-11-10 13:01:53,776] WARNING django.request: Method Not Allowed: /api/tasks/18/data/0d609b5c-a574-4605-b291-339aca1810a6
2022-11-10 13:01:53,777 DEBG 'runserver' stderr output:
[Thu Nov 10 13:01:53.776969 2022] [wsgi:error] [pid 67:tid 139769879004928] [remote 172.18.0.7:51930] WARNING:django.request:Method Not Allowed: /api/tasks/18/data/0d609b5c-a574-4605-b291-339aca1810a6
The text was updated successfully, but these errors were encountered: