all-2022-10-05.log 7.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [INFO] [2022-10-05 19:38:38,957] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  2. [ERROR] [2022-10-05 19:41:59,059] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group
  3. Traceback (most recent call last):
  4. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  5. response = get_response(request)
  6. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/utils/deprecation.py", line 116, in __call__
  7. response = self.process_request(request)
  8. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/middleware/common.py", line 54, in process_request
  9. path = self.get_full_path_with_slash(request)
  10. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/middleware/common.py", line 88, in get_full_path_with_slash
  11. raise RuntimeError(
  12. RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/v1/group/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
  13. [ERROR] [2022-10-05 19:41:59,060] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group HTTP/1.1" 500 73447
  14. [WARNING] [2022-10-05 19:42:51,380] [log.py:224] [log:log_response] - Forbidden: /api/v1/group/
  15. [WARNING] [2022-10-05 19:42:51,381] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 403 37
  16. [ERROR] [2022-10-05 19:42:58,516] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/login
  17. Traceback (most recent call last):
  18. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  19. response = get_response(request)
  20. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  21. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  22. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  23. return view_func(*args, **kwargs)
  24. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  25. return self.dispatch(request, *args, **kwargs)
  26. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  27. response = self.handle_exception(exc)
  28. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  29. self.raise_uncaught_exception(exc)
  30. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  31. raise exc
  32. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  33. response = handler(request, *args, **kwargs)
  34. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py", line 125, in post
  35. 'group': user_obj.group,
  36. AttributeError: 'User' object has no attribute 'group'
  37. [ERROR] [2022-10-05 19:42:58,517] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 500 94728
  38. [INFO] [2022-10-05 19:43:39,341] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  39. [INFO] [2022-10-05 19:43:39,639] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  40. [INFO] [2022-10-05 19:43:42,070] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 292
  41. [ERROR] [2022-10-05 19:44:00,289] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/group/
  42. Traceback (most recent call last):
  43. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  44. response = get_response(request)
  45. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  46. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  47. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  48. return view_func(*args, **kwargs)
  49. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  50. return self.dispatch(request, *args, **kwargs)
  51. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  52. response = self.handle_exception(exc)
  53. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  54. self.raise_uncaught_exception(exc)
  55. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  56. raise exc
  57. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  58. response = handler(request, *args, **kwargs)
  59. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  60. return self.func(request, *args, **kwargs)
  61. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py", line 30, in post
  62. Group.objects.create(id=group_id, code=code, manager_id=manager_id, name=name, create_time=create_time,
  63. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  64. return getattr(self.get_queryset(), name)(*args, **kwargs)
  65. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 451, in create
  66. obj = self.model(**kwargs)
  67. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
  68. raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
  69. TypeError: Group() got an unexpected keyword argument 'manager_id'
  70. [ERROR] [2022-10-05 19:44:00,293] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 500 116471
  71. [INFO] [2022-10-05 19:44:55,486] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/views/grouplistview.py changed, reloading.
  72. [INFO] [2022-10-05 19:44:55,710] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  73. [INFO] [2022-10-05 19:44:57,740] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/group/ HTTP/1.1" 200 12
  74. [INFO] [2022-10-06 09:58:00,351] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/group/urls.py changed, reloading.