批量导入用户提示错误

有遇到过的吗?安全按照导入的示例填写的内容,还是不行!

2020-04-10 14:31:36,629 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api/v2.1/admin/import-users/
Traceback (most recent call last):
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/rest_framework/views.py”, line 505, in dispatch
response = self.handle_exception(exc)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/rest_framework/views.py”, line 465, in handle_exception
self.raise_uncaught_exception(exc)
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/rest_framework/views.py”, line 476, in raise_uncaught_exception
raise exc
File “/opt/seafile/seafile-server-7.1.3/seahub/thirdpart/rest_framework/views.py”, line 502, in dispatch
response = handler(request, *args, **kwargs)
File “/opt/seafile/seafile-server-7.1.3/seahub/seahub/api2/endpoints/admin/users_batch.py”, line 320, in post
password = record[1].strip()
AttributeError: ‘int’ object has no attribute ‘strip’

你用的什么版本?导入的用户格式正确吗?

7.1.3 centos 安装,单独添加用户OK,批量就是不行

实测在excel里面把密码和容量设置为文本格式可解决问题。