Hi,
I have the same problem. When issuing :
curl -v -X PUT -d "group_name=newgroup" -H 'Authorization: Token 3d0d79a6a0dea605ab9692c7c16d7564d4dc508c' "
https://seafile.myserver.com/api2/groups/"
I get a "Page unavailable" "Sorry, but the requested page is unavailable due to a server hiccup"
The user is an administrator in the seafile, he can create users even through web API, ....
In seahub_django_request.log, I get the following error :
[ERROR] django.request:212 handle_uncaught_exception Internal Server Error: /api2/groups/
Traceback (most recent call last):
File "/home/seafile/seafile-server-3.1.6/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/seafile/seafile-server-3.1.6/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/home/seafile/seafile-server-3.1.6/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/home/seafile/seafile-server-3.1.6/seahub/thirdpart/rest_framework/views.py", line 363, in dispatch
response = self.handle_exception(exc)
File "/home/seafile/seafile-server-3.1.6/seahub/thirdpart/rest_framework/views.py", line 360, in dispatch
response = handler(request, *args, **kwargs)
File "/home/seafile/seafile-server-3.1.6/seahub/seahub/api2/views.py", line 2597, in put
checked_groups = get_personal_groups_by_user(username)
UnboundLocalError: local variable 'username' referenced before assignmentSeafile server is 3.1.6 on Debian, with nginx and HTTPS
Does anyone already faced this ?
Thanks
Jack