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
"Object { id: "42272f52-0cd5-4b38-ae72-ef10a567b62c", status_code: 500, version: "1.15.0", detail: "You cannot access body after reading from request's data stream", exc_info: Traceback (most recent call last):\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\views.py", line 506, in dispatch\n response = handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\django\\utils\\decorators.py", line 46, in _wrapper\n return bound_method(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 256, in post\n return super(ImportAPI, self).post(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\generics.py", line 194, in post\n return self.create(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 393, in create\n return self.sync_import(request, project, preannotated_from_fields, commit_to_project, return_task_ids)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 273, in sync_import\n parsed_data, file_upload_ids, could_be_tasks_list, found_formats, data_columns = load_tasks(request, project)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\uploader.py", line 226, in load_tasks\n if len(request.FILES):\n ^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 447, in FILES\n self._load_data_and_files()\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 283, in _load_data_and_files\n self._data, self._files = self._parse()\n ^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 333, in _parse\n stream = self.stream\n ^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 207, in stream\n self._load_stream()\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 313, in _load_stream\n self._stream = io.BytesIO(self.body)\n ^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 421, in __getattr__\n return getattr(_request, attr)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\django\\http\\request.py", line 327, in body\n raise RawPostDataException(\ndjango.http.request.RawPostDataException: You cannot access body after reading from request's data stream\n }"
Describe the bug
Cannot import data to a set
To Reproduce
Steps to reproduce the behavior:
4:
"Object { id: "42272f52-0cd5-4b38-ae72-ef10a567b62c", status_code: 500, version: "1.15.0", detail: "You cannot access body after reading from request's data stream", exc_info:
Traceback (most recent call last):\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\views.py", line 506, in dispatch\n response = handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\django\\utils\\decorators.py", line 46, in _wrapper\n return bound_method(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 256, in post\n return super(ImportAPI, self).post(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\generics.py", line 194, in post\n return self.create(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 393, in create\n return self.sync_import(request, project, preannotated_from_fields, commit_to_project, return_task_ids)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\api.py", line 273, in sync_import\n parsed_data, file_upload_ids, could_be_tasks_list, found_formats, data_columns = load_tasks(request, project)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\label_studio\\data_import\\uploader.py", line 226, in load_tasks\n if len(request.FILES):\n ^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 447, in FILES\n self._load_data_and_files()\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 283, in _load_data_and_files\n self._data, self._files = self._parse()\n ^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 333, in _parse\n stream = self.stream\n ^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 207, in stream\n self._load_stream()\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 313, in _load_stream\n self._stream = io.BytesIO(self.body)\n ^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\rest_framework\\request.py", line 421, in __getattr__\n return getattr(_request, attr)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\Sarah\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\django\\http\\request.py", line 327, in body\n raise RawPostDataException(\ndjango.http.request.RawPostDataException: You cannot access body after reading from request's data stream\n
}"When importing files.
[c2b17384-3845-4728-953c-2f25b8dfc8d9] Validation error ('content-length')
When adding url
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: