Internal Server Error: /cloud/api/v2.1/query-zip-progress/

Hello there,

the error appears in the mailbox from time to time
the installation has grown historically, from version 6 to the current 9.0.2 CE on a current Debian 11.
the error even occurs with version 8

is this known? what other information can i share? what parts of the log would be relevant?

thanks and regards,
Thomas

TypeError at cloud/api/v2.1/query-zip-progress/
the JSON object must be str, bytes or bytearray, not NoneType

Request Method: GET
Request URL: mail.company/cloud/api/v2.1/query-zip-progress/?token=23280559-8ad8-4451-8137-1c1869a7e85c
Django Version: 3.2.6
Python Executable: /usr/bin/python3
Python Version: 3.9.2
Traceback (most recent call last):
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/django/core/handlers/exception.py”,
line 47, in inner
response = get_response(request)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/django/core/handlers/base.py”,
line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/django/views/decorators/csrf.py”,
line 54, in wrapped_view
return view_func(*args, **kwargs)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/django/views/generic/base.py”,
line 70, in view
return self.dispatch(request, *args, **kwargs)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”,
line 505, in dispatch
response = self.handle_exception(exc)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”,
line 465, in handle_exception
self.raise_uncaught_exception(exc)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”,
line 476, in raise_uncaught_exception
raise exc
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”,
line 502, in dispatch
response = handler(request, *args, **kwargs)
File
β€œ/usr/share/seafile/company/seafile-server-9.0.2/seahub/seahub/api2/endpoints/query_zip_progress.py”,
line 38, in get
return Response(json.loads(progress))
File β€œ/usr/lib/python3.9/json/init.py”, line 339, in loads
raise TypeError(f’the JSON object must be str, bytes or bytearray, ’

If you enabled golang file server, when user zip download a folder in sharing links, this error will occur. It will be fixed in the next release.

1 Like