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
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/backend/api/views/export_dataset.py", line 34, in get
return FileResponse(open(filename, mode='rb'), as_attachment=True)
How to reproduce the behaviour:
Upload 3000 records for named entity recognition, and export the data, it gave me a 500 Error.
Your Environment
Error message:
Environment:
Request Method: GET
Django Version: 3.2.5
Python Version: 3.6.8
Installed Applications:
Exception Type: TypeError at /v1/projects/2/download
Exception Value: expected str, bytes or os.PathLike object, not OperationalError
https://www.loom.com/share/1e646155380a4eb08a1b0590e5a62f55
The text was updated successfully, but these errors were encountered: