web登录正常,客户端登录服务器内部错误


#1

web端登录和操作正常,客户端和app登录就提示 服务器内部错误, 急求高手解答
2018-03-28 04:06:26,463 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/auth-token/
Traceback (most recent call last):
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/generic/base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 454, in dispatch
self.initial(request, *args, **kwargs)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 378, in initial
self.check_throttles(request)
File “/home/whzcsy/seafile-server-6.2.5/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 340, in check_throttles
if not throttle.allow_request(request, self):
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 125, in allow_request
self.key = self.get_cache_key(request, view)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 185, in get_cache_key
‘ident’: self.get_ident(request)
File “/home/whzcsy/seafile-server-6.2.5/seahub/seahub/api2/throttling.py”, line 42, in get_ident
return ‘’.join(xff.split()) if xff else remote_addr
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xef in position 0: ordinal not in range(128)


#2

你好,你的问题解决了吗?我也遇到了这个问题


#3

我也碰到了这个问题,请问解决了吗?