all-2022-06-19.log 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. [INFO] [2022-06-19 11:13:49,473] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  2. [ERROR] [2022-06-19 11:14:35,512] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  3. Traceback (most recent call last):
  4. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  5. return self.cursor.execute(sql, params)
  6. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  7. return self.cursor.execute(query, args)
  8. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  9. result = self._query(query)
  10. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  11. conn.query(q)
  12. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  13. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  14. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  15. result.read()
  16. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  17. first_packet = self.connection._read_packet()
  18. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  19. packet.check_error()
  20. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  21. err.raise_mysql_exception(self._data)
  22. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  23. raise errorclass(errno, errval)
  24. pymysql.err.IntegrityError: (1048, "Column 'group' cannot be null")
  25. The above exception was the direct cause of the following exception:
  26. Traceback (most recent call last):
  27. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  28. response = get_response(request)
  29. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  30. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  31. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  32. return view_func(*args, **kwargs)
  33. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  34. return self.dispatch(request, *args, **kwargs)
  35. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  36. response = self.handle_exception(exc)
  37. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  38. self.raise_uncaught_exception(exc)
  39. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  40. raise exc
  41. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  42. response = handler(request, *args, **kwargs)
  43. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py", line 52, in post
  44. new_user = User.objects.create(**payload)
  45. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  46. return getattr(self.get_queryset(), name)(*args, **kwargs)
  47. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
  48. obj.save(force_insert=True, using=self.db)
  49. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  50. self.save_base(using=using, force_insert=force_insert,
  51. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  52. updated = self._save_table(
  53. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table
  54. results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  55. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert
  56. return manager._insert(
  57. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  58. return getattr(self.get_queryset(), name)(*args, **kwargs)
  59. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
  60. return query.get_compiler(using=using).execute_sql(returning_fields)
  61. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
  62. cursor.execute(sql, params)
  63. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  64. return super().execute(sql, params)
  65. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  66. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  67. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  68. return executor(sql, params, many, context)
  69. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  70. return self.cursor.execute(sql, params)
  71. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  72. raise dj_exc_value.with_traceback(traceback) from exc_value
  73. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  74. return self.cursor.execute(sql, params)
  75. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  76. return self.cursor.execute(query, args)
  77. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  78. result = self._query(query)
  79. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  80. conn.query(q)
  81. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  82. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  83. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  84. result.read()
  85. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  86. first_packet = self.connection._read_packet()
  87. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  88. packet.check_error()
  89. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  90. err.raise_mysql_exception(self._data)
  91. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  92. raise errorclass(errno, errval)
  93. django.db.utils.IntegrityError: (1048, "Column 'group' cannot be null")
  94. [ERROR] [2022-06-19 11:14:35,563] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 500 249120
  95. [INFO] [2022-06-19 11:17:37,974] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  96. [INFO] [2022-06-19 11:17:38,293] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  97. [INFO] [2022-06-19 11:17:44,198] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
  98. [INFO] [2022-06-19 11:20:03,104] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  99. [INFO] [2022-06-19 11:20:03,456] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  100. [INFO] [2022-06-19 11:20:18,216] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  101. [INFO] [2022-06-19 11:20:18,516] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  102. [INFO] [2022-06-19 11:20:32,482] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
  103. [INFO] [2022-06-19 11:21:02,298] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/ HTTP/1.1" 200 12
  104. [INFO] [2022-06-19 11:24:46,456] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
  105. [INFO] [2022-06-19 11:24:46,793] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  106. [INFO] [2022-06-19 11:28:12,984] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 288
  107. [ERROR] [2022-06-19 11:29:42,227] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  108. [ERROR] [2022-06-19 11:29:42,228] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  109. [INFO] [2022-06-19 11:33:18,599] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  110. [INFO] [2022-06-19 11:33:18,939] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  111. [ERROR] [2022-06-19 11:33:21,552] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  112. [ERROR] [2022-06-19 11:33:21,553] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  113. [INFO] [2022-06-19 11:34:11,685] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  114. [INFO] [2022-06-19 11:34:11,907] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  115. [ERROR] [2022-06-19 11:34:14,346] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  116. [ERROR] [2022-06-19 11:34:14,347] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  117. [INFO] [2022-06-19 11:34:31,691] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  118. [INFO] [2022-06-19 11:34:31,934] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  119. [ERROR] [2022-06-19 11:34:32,940] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  120. [ERROR] [2022-06-19 11:34:32,941] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  121. [INFO] [2022-06-19 11:35:11,195] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  122. [INFO] [2022-06-19 11:35:11,420] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  123. [ERROR] [2022-06-19 11:35:15,577] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  124. [ERROR] [2022-06-19 11:35:15,578] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  125. [INFO] [2022-06-19 11:35:46,668] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  126. [INFO] [2022-06-19 11:35:46,902] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  127. [ERROR] [2022-06-19 11:35:48,185] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  128. [ERROR] [2022-06-19 11:35:48,186] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 21
  129. [INFO] [2022-06-19 11:36:49,819] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  130. [INFO] [2022-06-19 11:36:50,055] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  131. [ERROR] [2022-06-19 11:36:52,345] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/TestLaboratory_V1_User_4/edit
  132. Traceback (most recent call last):
  133. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  134. return self.cursor.execute(sql, params)
  135. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  136. return self.cursor.execute(query, args)
  137. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  138. result = self._query(query)
  139. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  140. conn.query(q)
  141. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  142. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  143. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  144. result.read()
  145. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  146. first_packet = self.connection._read_packet()
  147. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  148. packet.check_error()
  149. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  150. err.raise_mysql_exception(self._data)
  151. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  152. raise errorclass(errno, errval)
  153. pymysql.err.IntegrityError: (1048, "Column 'tel' cannot be null")
  154. The above exception was the direct cause of the following exception:
  155. Traceback (most recent call last):
  156. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  157. response = get_response(request)
  158. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  159. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  160. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  161. return view_func(*args, **kwargs)
  162. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  163. return self.dispatch(request, *args, **kwargs)
  164. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  165. response = self.handle_exception(exc)
  166. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  167. self.raise_uncaught_exception(exc)
  168. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  169. raise exc
  170. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  171. response = handler(request, *args, **kwargs)
  172. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 44, in __call__
  173. return self.func(request, *args, **kwargs)
  174. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py", line 61, in post
  175. user.save()
  176. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  177. self.save_base(using=using, force_insert=force_insert,
  178. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  179. updated = self._save_table(
  180. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 845, in _save_table
  181. updated = self._do_update(base_qs, using, pk_val, values, update_fields,
  182. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 899, in _do_update
  183. return filtered._update(values) > 0
  184. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 802, in _update
  185. return query.get_compiler(self.db).execute_sql(CURSOR)
  186. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1559, in execute_sql
  187. cursor = super().execute_sql(result_type)
  188. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
  189. cursor.execute(sql, params)
  190. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  191. return super().execute(sql, params)
  192. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  193. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  194. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  195. return executor(sql, params, many, context)
  196. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  197. return self.cursor.execute(sql, params)
  198. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  199. raise dj_exc_value.with_traceback(traceback) from exc_value
  200. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  201. return self.cursor.execute(sql, params)
  202. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  203. return self.cursor.execute(query, args)
  204. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  205. result = self._query(query)
  206. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  207. conn.query(q)
  208. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  209. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  210. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  211. result.read()
  212. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  213. first_packet = self.connection._read_packet()
  214. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  215. packet.check_error()
  216. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  217. err.raise_mysql_exception(self._data)
  218. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  219. raise errorclass(errno, errval)
  220. django.db.utils.IntegrityError: (1048, "Column 'tel' cannot be null")
  221. [ERROR] [2022-06-19 11:36:52,356] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 500 244962
  222. [INFO] [2022-06-19 11:37:35,409] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
  223. [INFO] [2022-06-19 11:37:35,641] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  224. [INFO] [2022-06-19 11:37:41,989] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  225. [INFO] [2022-06-19 11:38:38,694] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  226. [WARNING] [2022-06-19 11:43:12,776] [log.py:224] [log:log_response] - Forbidden: /api/v1/users/TestLaboratory_V1_User_4
  227. [WARNING] [2022-06-19 11:43:12,776] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 403 37
  228. [INFO] [2022-06-19 11:43:43,400] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
  229. [INFO] [2022-06-19 11:44:01,354] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  230. [INFO] [2022-06-19 11:44:01,675] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  231. [INFO] [2022-06-19 11:44:03,855] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
  232. [INFO] [2022-06-19 11:44:26,751] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  233. [INFO] [2022-06-19 11:44:26,987] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  234. [INFO] [2022-06-19 11:44:29,061] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
  235. [INFO] [2022-06-19 11:45:10,977] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  236. [INFO] [2022-06-19 11:46:18,575] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  237. [INFO] [2022-06-19 11:46:18,991] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  238. [INFO] [2022-06-19 11:46:30,089] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
  239. [INFO] [2022-06-19 11:50:12,525] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  240. [INFO] [2022-06-19 11:50:12,854] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  241. [INFO] [2022-06-19 11:50:17,271] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 64
  242. [INFO] [2022-06-19 11:50:22,872] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  243. [INFO] [2022-06-19 11:51:55,804] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  244. [INFO] [2022-06-19 11:54:53,551] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userview.py changed, reloading.
  245. [INFO] [2022-06-19 11:54:53,899] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  246. [INFO] [2022-06-19 11:55:04,245] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
  247. [INFO] [2022-06-19 11:56:11,710] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  248. [INFO] [2022-06-19 11:56:12,042] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  249. [ERROR] [2022-06-19 11:57:06,761] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  250. [ERROR] [2022-06-19 11:57:06,761] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  251. [WARNING] [2022-06-19 11:57:17,729] [log.py:224] [log:log_response] - Not Found: /api/v1/users
  252. [WARNING] [2022-06-19 11:57:17,729] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
  253. [ERROR] [2022-06-19 11:57:56,475] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  254. [ERROR] [2022-06-19 11:57:56,476] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  255. [INFO] [2022-06-19 11:59:09,744] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
  256. [INFO] [2022-06-19 11:59:10,076] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  257. [INFO] [2022-06-19 11:59:20,588] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  258. [INFO] [2022-06-19 11:59:20,854] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  259. [INFO] [2022-06-19 11:59:35,423] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  260. [INFO] [2022-06-19 11:59:35,680] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  261. [WARNING] [2022-06-19 11:59:39,158] [log.py:224] [log:log_response] - Not Found: /api/v1/users/
  262. [WARNING] [2022-06-19 11:59:39,158] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 404 3415
  263. [ERROR] [2022-06-19 11:59:41,276] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  264. [ERROR] [2022-06-19 11:59:41,277] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
  265. [ERROR] [2022-06-19 11:59:57,947] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  266. [ERROR] [2022-06-19 11:59:57,948] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
  267. [INFO] [2022-06-19 12:00:16,068] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
  268. [INFO] [2022-06-19 12:00:16,387] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  269. [WARNING] [2022-06-19 12:00:21,654] [log.py:224] [log:log_response] - Not Found: /api/v1/users
  270. [WARNING] [2022-06-19 12:00:21,654] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
  271. [ERROR] [2022-06-19 12:00:25,180] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  272. [ERROR] [2022-06-19 12:00:25,181] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  273. [INFO] [2022-06-19 12:01:05,971] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  274. [INFO] [2022-06-19 12:01:06,306] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  275. [INFO] [2022-06-19 12:01:09,660] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
  276. [INFO] [2022-06-19 12:01:09,893] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  277. [WARNING] [2022-06-19 12:01:12,205] [log.py:224] [log:log_response] - Not Found: /api/v1/users/
  278. [WARNING] [2022-06-19 12:01:12,205] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 404 3415
  279. [ERROR] [2022-06-19 12:01:19,960] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  280. [ERROR] [2022-06-19 12:01:19,961] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
  281. [INFO] [2022-06-19 12:02:03,559] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  282. [INFO] [2022-06-19 12:02:03,793] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  283. [ERROR] [2022-06-19 12:02:06,813] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  284. [ERROR] [2022-06-19 12:02:06,814] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
  285. [INFO] [2022-06-19 12:02:47,207] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  286. [INFO] [2022-06-19 12:02:47,444] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  287. [ERROR] [2022-06-19 12:02:50,488] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  288. Traceback (most recent call last):
  289. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/request.py", line 416, in __getattr__
  290. return getattr(self._request, attr)
  291. AttributeError: 'WSGIRequest' object has no attribute 'url'
  292. During handling of the above exception, another exception occurred:
  293. Traceback (most recent call last):
  294. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  295. response = get_response(request)
  296. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  297. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  298. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  299. return view_func(*args, **kwargs)
  300. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  301. return self.dispatch(request, *args, **kwargs)
  302. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  303. response = self.handle_exception(exc)
  304. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  305. self.raise_uncaught_exception(exc)
  306. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  307. raise exc
  308. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  309. response = handler(request, *args, **kwargs)
  310. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 36, in __call__
  311. print(per.url, request.path, re.fullmatch(per.url, request.path), per.url == request.url)
  312. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/request.py", line 418, in __getattr__
  313. return self.__getattribute__(attr)
  314. AttributeError: 'Request' object has no attribute 'url'
  315. [ERROR] [2022-06-19 12:02:50,492] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 101329
  316. [INFO] [2022-06-19 12:03:02,061] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  317. [INFO] [2022-06-19 12:03:02,297] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  318. [ERROR] [2022-06-19 12:03:04,238] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users
  319. [ERROR] [2022-06-19 12:03:04,239] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 500 21
  320. [WARNING] [2022-06-19 12:03:53,562] [log.py:224] [log:log_response] - Not Found: /api/v1/users/TestLaboratory_V1_User_4
  321. [WARNING] [2022-06-19 12:03:53,563] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 404 3482
  322. [INFO] [2022-06-19 12:05:07,926] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/TestLaboratory/urls.py changed, reloading.
  323. [INFO] [2022-06-19 12:05:08,166] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  324. [INFO] [2022-06-19 12:05:10,303] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
  325. [WARNING] [2022-06-19 12:05:27,085] [log.py:224] [log:log_response] - Not Found: /api/v1/users
  326. [WARNING] [2022-06-19 12:05:27,085] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users%0A HTTP/1.1" 404 2841
  327. [ERROR] [2022-06-19 12:05:38,893] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  328. [ERROR] [2022-06-19 12:05:38,893] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  329. [INFO] [2022-06-19 12:07:09,502] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  330. [INFO] [2022-06-19 12:07:09,812] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  331. [ERROR] [2022-06-19 12:07:12,801] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  332. [ERROR] [2022-06-19 12:07:12,801] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  333. [INFO] [2022-06-19 12:07:29,679] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  334. [INFO] [2022-06-19 12:07:29,969] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  335. [ERROR] [2022-06-19 12:07:32,575] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  336. [ERROR] [2022-06-19 12:07:32,577] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  337. [INFO] [2022-06-19 12:08:23,630] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  338. [INFO] [2022-06-19 12:08:23,912] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  339. [ERROR] [2022-06-19 12:08:24,804] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  340. [ERROR] [2022-06-19 12:08:24,805] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  341. [INFO] [2022-06-19 12:09:14,525] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  342. [INFO] [2022-06-19 12:09:14,763] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  343. [INFO] [2022-06-19 12:09:18,065] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  344. [INFO] [2022-06-19 12:09:18,307] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  345. [ERROR] [2022-06-19 12:09:20,771] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  346. [ERROR] [2022-06-19 12:09:20,772] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  347. [INFO] [2022-06-19 12:10:12,910] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  348. [INFO] [2022-06-19 12:10:13,158] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  349. [ERROR] [2022-06-19 12:10:16,151] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  350. [ERROR] [2022-06-19 12:10:16,151] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  351. [INFO] [2022-06-19 12:10:31,932] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  352. [INFO] [2022-06-19 12:10:32,281] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  353. [ERROR] [2022-06-19 12:10:38,237] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  354. [ERROR] [2022-06-19 12:10:38,238] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  355. [ERROR] [2022-06-19 12:10:38,678] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  356. [ERROR] [2022-06-19 12:10:38,679] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  357. [INFO] [2022-06-19 12:11:53,774] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  358. [INFO] [2022-06-19 12:11:54,083] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  359. [INFO] [2022-06-19 12:12:58,518] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  360. [INFO] [2022-06-19 12:12:58,846] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  361. [ERROR] [2022-06-19 12:13:00,487] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  362. [ERROR] [2022-06-19 12:13:00,487] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  363. [INFO] [2022-06-19 12:13:23,876] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  364. [INFO] [2022-06-19 12:13:24,197] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  365. [ERROR] [2022-06-19 12:13:50,753] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  366. [ERROR] [2022-06-19 12:13:50,754] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 21
  367. [INFO] [2022-06-19 12:14:31,320] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  368. [INFO] [2022-06-19 12:14:31,628] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  369. [INFO] [2022-06-19 12:14:34,116] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 432
  370. [INFO] [2022-06-19 12:15:06,852] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py changed, reloading.
  371. [INFO] [2022-06-19 12:15:07,165] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  372. [INFO] [2022-06-19 12:15:09,116] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 432
  373. [INFO] [2022-06-19 12:15:16,274] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/TestLaboratory_V1_User_4 HTTP/1.1" 200 81
  374. [INFO] [2022-06-19 12:15:29,588] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/TestLaboratory_V1_User_4/edit HTTP/1.1" 200 15
  375. [INFO] [2022-06-19 12:19:11,888] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  376. [INFO] [2022-06-19 12:19:12,232] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  377. [INFO] [2022-06-19 12:19:23,865] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 315
  378. [INFO] [2022-06-19 12:45:54,349] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  379. [INFO] [2022-06-19 12:45:54,701] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  380. [INFO] [2022-06-19 12:46:01,001] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  381. [INFO] [2022-06-19 12:46:01,390] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  382. [INFO] [2022-06-19 12:46:42,455] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  383. [INFO] [2022-06-19 12:46:42,676] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  384. [INFO] [2022-06-19 12:47:37,184] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  385. [INFO] [2022-06-19 12:47:37,415] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  386. [INFO] [2022-06-19 12:48:09,412] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/urls.py changed, reloading.
  387. [INFO] [2022-06-19 12:48:09,722] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  388. [INFO] [2022-06-19 15:34:37,455] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  389. [INFO] [2022-06-19 15:34:37,813] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  390. [INFO] [2022-06-19 15:37:53,329] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  391. [INFO] [2022-06-19 15:37:53,618] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  392. [INFO] [2022-06-19 15:39:06,135] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  393. [INFO] [2022-06-19 15:39:06,431] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  394. [INFO] [2022-06-19 15:44:27,562] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  395. [INFO] [2022-06-19 15:44:27,915] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  396. [INFO] [2022-06-19 15:44:41,529] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  397. [INFO] [2022-06-19 15:44:41,761] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  398. [ERROR] [2022-06-19 15:44:53,644] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/users/
  399. Traceback (most recent call last):
  400. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  401. response = get_response(request)
  402. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  403. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  404. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  405. return view_func(*args, **kwargs)
  406. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  407. return self.dispatch(request, *args, **kwargs)
  408. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  409. response = self.handle_exception(exc)
  410. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  411. self.raise_uncaught_exception(exc)
  412. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  413. raise exc
  414. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  415. response = handler(request, *args, **kwargs)
  416. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  417. return self.func(request, *args, **kwargs)
  418. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py", line 81, in get
  419. users_info[user_group[user.group]] = [{
  420. IndexError: list assignment index out of range
  421. [ERROR] [2022-06-19 15:44:53,650] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 500 97921
  422. [INFO] [2022-06-19 15:46:07,229] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  423. [INFO] [2022-06-19 15:46:07,561] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  424. [INFO] [2022-06-19 15:46:16,912] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  425. [INFO] [2022-06-19 15:46:17,208] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  426. [INFO] [2022-06-19 15:46:22,773] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 662
  427. [INFO] [2022-06-19 15:47:32,633] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  428. [INFO] [2022-06-19 15:47:32,962] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  429. [INFO] [2022-06-19 15:49:34,001] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/lims-backend/TestLaboratory_ali_v1.3/TestLaboratory/apps/user/views/userlistview.py changed, reloading.
  430. [INFO] [2022-06-19 15:49:34,215] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  431. [INFO] [2022-06-19 15:49:36,032] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/users/%0A HTTP/1.1" 200 736