seahub.log日志报错(1)(版本7.0.3)


#1
OperationalError: (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xB1' for column 'device_name' at row 1")
2019-07-27 06:59:56,956 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api2/auth-token/
Traceback (most recent call last):
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/base.py", line 23, in dispatch
    response = super(APIView, self).dispatch(*a, **kw)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/rest_framework/views.py", line 466, in dispatch
    response = self.handle_exception(exc)
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/base.py", line 20, in handle_exception
    return super(APIView, self).handle_exception(exc)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/rest_framework/views.py", line 463, in dispatch
    response = handler(request, *args, **kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/views.py", line 196, in post
    if serializer.is_valid():
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/rest_framework/serializers.py", line 213, in is_valid
    self._validated_data = self.run_validation(self.initial_data)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/rest_framework/serializers.py", line 410, in run_validation
    value = self.validate(value)
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/serializers.py", line 106, in validate
    device_id, device_name, client_version, platform_version)
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/utils.py", line 384, in get_token_v2
    client_version, platform_version, get_client_ip(request))
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/models.py", line 117, in get_or_create_token
    token.save()
  File "/media/vmpool/seafile-server-7.0.3/seahub/seahub/api2/models.py", line 171, in save
    return super(TokenV2, self).save(*args, **kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/base.py", line 838, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/base.py", line 924, in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/base.py", line 963, in _do_insert
    using=using, raw=raw)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/query.py", line 1076, in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/media/vmpool/seafile-server-7.0.3/seahub/thirdpart/django/db/models/sql/compiler.py", line 1112, in execute_sql