all-2022-11-16.log 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. [INFO] [2022-11-16 11:11:24,701] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  2. [INFO] [2022-11-16 11:14:12,976] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  3. [INFO] [2022-11-16 11:14:13,388] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  4. [INFO] [2022-11-16 11:14:59,320] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  5. [INFO] [2022-11-16 11:14:59,577] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  6. [INFO] [2022-11-16 11:19:01,644] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  7. [INFO] [2022-11-16 11:19:01,923] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  8. [INFO] [2022-11-16 11:19:16,724] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 292
  9. [INFO] [2022-11-16 11:20:04,630] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 281
  10. [INFO] [2022-11-16 11:20:28,525] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  11. [INFO] [2022-11-16 11:21:21,241] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  12. [INFO] [2022-11-16 11:21:21,549] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  13. [INFO] [2022-11-16 11:21:51,918] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  14. [INFO] [2022-11-16 11:21:52,194] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  15. [INFO] [2022-11-16 11:22:22,353] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  16. [INFO] [2022-11-16 11:22:22,580] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  17. [INFO] [2022-11-16 11:34:22,971] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  18. [INFO] [2022-11-16 11:36:16,515] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 281
  19. [ERROR] [2022-11-16 11:36:29,594] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute
  20. Traceback (most recent call last):
  21. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  22. return self.cursor.execute(sql, params)
  23. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  24. return self.cursor.execute(query, args)
  25. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  26. result = self._query(query)
  27. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  28. conn.query(q)
  29. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  30. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  31. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  32. result.read()
  33. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  34. first_packet = self.connection._read_packet()
  35. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  36. packet.check_error()
  37. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  38. err.raise_mysql_exception(self._data)
  39. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  40. raise errorclass(errno, errval)
  41. pymysql.err.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'")
  42. The above exception was the direct cause of the following exception:
  43. Traceback (most recent call last):
  44. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  45. response = get_response(request)
  46. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  47. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  48. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  49. return view_func(*args, **kwargs)
  50. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  51. return self.dispatch(request, *args, **kwargs)
  52. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  53. response = self.handle_exception(exc)
  54. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  55. self.raise_uncaught_exception(exc)
  56. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  57. raise exc
  58. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  59. response = handler(request, *args, **kwargs)
  60. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post
  61. BeidouCase.objects.create(**params_dict)
  62. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  63. return getattr(self.get_queryset(), name)(*args, **kwargs)
  64. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
  65. obj.save(force_insert=True, using=self.db)
  66. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  67. self.save_base(using=using, force_insert=force_insert,
  68. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  69. updated = self._save_table(
  70. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table
  71. results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  72. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert
  73. return manager._insert(
  74. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  75. return getattr(self.get_queryset(), name)(*args, **kwargs)
  76. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
  77. return query.get_compiler(using=using).execute_sql(returning_fields)
  78. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
  79. cursor.execute(sql, params)
  80. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  81. return super().execute(sql, params)
  82. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  83. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  84. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  85. return executor(sql, params, many, context)
  86. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  87. return self.cursor.execute(sql, params)
  88. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  89. raise dj_exc_value.with_traceback(traceback) from exc_value
  90. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  91. return self.cursor.execute(sql, params)
  92. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  93. return self.cursor.execute(query, args)
  94. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  95. result = self._query(query)
  96. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  97. conn.query(q)
  98. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  99. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  100. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  101. result.read()
  102. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  103. first_packet = self.connection._read_packet()
  104. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  105. packet.check_error()
  106. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  107. err.raise_mysql_exception(self._data)
  108. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  109. raise errorclass(errno, errval)
  110. django.db.utils.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'")
  111. [ERROR] [2022-11-16 11:36:29,607] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 500 273483
  112. [ERROR] [2022-11-16 11:37:03,709] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute
  113. Traceback (most recent call last):
  114. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  115. return self.cursor.execute(sql, params)
  116. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  117. return self.cursor.execute(query, args)
  118. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  119. result = self._query(query)
  120. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  121. conn.query(q)
  122. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  123. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  124. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  125. result.read()
  126. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  127. first_packet = self.connection._read_packet()
  128. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  129. packet.check_error()
  130. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  131. err.raise_mysql_exception(self._data)
  132. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  133. raise errorclass(errno, errval)
  134. pymysql.err.IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`testlaboratory`.`beidou_case`, CONSTRAINT `beidou_case_software_id_5cfe9205_fk_software_id` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`))')
  135. The above exception was the direct cause of the following exception:
  136. Traceback (most recent call last):
  137. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  138. response = get_response(request)
  139. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  140. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  141. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  142. return view_func(*args, **kwargs)
  143. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  144. return self.dispatch(request, *args, **kwargs)
  145. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  146. response = self.handle_exception(exc)
  147. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  148. self.raise_uncaught_exception(exc)
  149. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  150. raise exc
  151. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  152. response = handler(request, *args, **kwargs)
  153. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post
  154. BeidouCase.objects.create(**params_dict)
  155. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  156. return getattr(self.get_queryset(), name)(*args, **kwargs)
  157. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
  158. obj.save(force_insert=True, using=self.db)
  159. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  160. self.save_base(using=using, force_insert=force_insert,
  161. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  162. updated = self._save_table(
  163. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table
  164. results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  165. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert
  166. return manager._insert(
  167. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  168. return getattr(self.get_queryset(), name)(*args, **kwargs)
  169. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
  170. return query.get_compiler(using=using).execute_sql(returning_fields)
  171. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
  172. cursor.execute(sql, params)
  173. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  174. return super().execute(sql, params)
  175. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  176. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  177. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  178. return executor(sql, params, many, context)
  179. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  180. return self.cursor.execute(sql, params)
  181. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  182. raise dj_exc_value.with_traceback(traceback) from exc_value
  183. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  184. return self.cursor.execute(sql, params)
  185. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  186. return self.cursor.execute(query, args)
  187. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  188. result = self._query(query)
  189. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  190. conn.query(q)
  191. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  192. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  193. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  194. result.read()
  195. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  196. first_packet = self.connection._read_packet()
  197. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  198. packet.check_error()
  199. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  200. err.raise_mysql_exception(self._data)
  201. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  202. raise errorclass(errno, errval)
  203. django.db.utils.IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`testlaboratory`.`beidou_case`, CONSTRAINT `beidou_case_software_id_5cfe9205_fk_software_id` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`))')
  204. [ERROR] [2022-11-16 11:37:03,716] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 500 275791
  205. [INFO] [2022-11-16 11:37:48,342] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  206. [INFO] [2022-11-16 11:37:48,611] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  207. [INFO] [2022-11-16 11:37:51,370] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  208. [ERROR] [2022-11-16 11:38:08,578] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute
  209. Traceback (most recent call last):
  210. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  211. return self.cursor.execute(sql, params)
  212. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  213. return self.cursor.execute(query, args)
  214. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  215. result = self._query(query)
  216. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  217. conn.query(q)
  218. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  219. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  220. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  221. result.read()
  222. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  223. first_packet = self.connection._read_packet()
  224. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  225. packet.check_error()
  226. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  227. err.raise_mysql_exception(self._data)
  228. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  229. raise errorclass(errno, errval)
  230. pymysql.err.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'")
  231. The above exception was the direct cause of the following exception:
  232. Traceback (most recent call last):
  233. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  234. response = get_response(request)
  235. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  236. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  237. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  238. return view_func(*args, **kwargs)
  239. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  240. return self.dispatch(request, *args, **kwargs)
  241. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  242. response = self.handle_exception(exc)
  243. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  244. self.raise_uncaught_exception(exc)
  245. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  246. raise exc
  247. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  248. response = handler(request, *args, **kwargs)
  249. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post
  250. BeidouCase.objects.create(**params_dict)
  251. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  252. return getattr(self.get_queryset(), name)(*args, **kwargs)
  253. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
  254. obj.save(force_insert=True, using=self.db)
  255. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save
  256. self.save_base(using=using, force_insert=force_insert,
  257. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base
  258. updated = self._save_table(
  259. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table
  260. results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  261. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert
  262. return manager._insert(
  263. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
  264. return getattr(self.get_queryset(), name)(*args, **kwargs)
  265. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
  266. return query.get_compiler(using=using).execute_sql(returning_fields)
  267. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
  268. cursor.execute(sql, params)
  269. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
  270. return super().execute(sql, params)
  271. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
  272. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  273. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
  274. return executor(sql, params, many, context)
  275. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  276. return self.cursor.execute(sql, params)
  277. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
  278. raise dj_exc_value.with_traceback(traceback) from exc_value
  279. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
  280. return self.cursor.execute(sql, params)
  281. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
  282. return self.cursor.execute(query, args)
  283. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute
  284. result = self._query(query)
  285. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query
  286. conn.query(q)
  287. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query
  288. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  289. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result
  290. result.read()
  291. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read
  292. first_packet = self.connection._read_packet()
  293. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet
  294. packet.check_error()
  295. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error
  296. err.raise_mysql_exception(self._data)
  297. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
  298. raise errorclass(errno, errval)
  299. django.db.utils.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'")
  300. [ERROR] [2022-11-16 11:38:08,584] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 500 273800
  301. [INFO] [2022-11-16 11:38:31,936] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  302. [INFO] [2022-11-16 11:38:32,255] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  303. [INFO] [2022-11-16 11:38:35,396] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  304. [INFO] [2022-11-16 11:51:28,830] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  305. [INFO] [2022-11-16 11:51:29,250] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  306. [INFO] [2022-11-16 11:54:22,231] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  307. [INFO] [2022-11-16 11:54:22,609] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  308. [INFO] [2022-11-16 11:54:25,116] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  309. [ERROR] [2022-11-16 11:54:34,318] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute
  310. Traceback (most recent call last):
  311. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  312. response = get_response(request)
  313. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  314. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  315. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  316. return view_func(*args, **kwargs)
  317. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  318. return self.dispatch(request, *args, **kwargs)
  319. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  320. response = self.handle_exception(exc)
  321. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  322. self.raise_uncaught_exception(exc)
  323. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  324. raise exc
  325. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  326. response = handler(request, *args, **kwargs)
  327. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 49, in post
  328. beidou_case.update(**params_dict)
  329. AttributeError: 'BeidouCase' object has no attribute 'update'
  330. [ERROR] [2022-11-16 11:54:34,319] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 500 98047
  331. [INFO] [2022-11-16 12:00:20,477] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  332. [INFO] [2022-11-16 12:00:20,829] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  333. [INFO] [2022-11-16 12:00:24,061] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  334. [INFO] [2022-11-16 17:44:03,971] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/urls.py changed, reloading.
  335. [INFO] [2022-11-16 17:44:04,338] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  336. [INFO] [2022-11-16 17:51:27,752] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/urls.py changed, reloading.
  337. [INFO] [2022-11-16 17:51:28,167] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  338. [INFO] [2022-11-16 17:56:53,446] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  339. [INFO] [2022-11-16 17:56:53,956] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  340. [INFO] [2022-11-16 17:57:33,862] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  341. [INFO] [2022-11-16 17:57:34,104] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  342. [INFO] [2022-11-16 17:57:54,182] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  343. [INFO] [2022-11-16 17:57:55,095] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  344. [INFO] [2022-11-16 17:59:07,720] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  345. [INFO] [2022-11-16 17:59:08,090] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  346. [INFO] [2022-11-16 18:00:46,221] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  347. [INFO] [2022-11-16 18:00:46,646] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  348. [WARNING] [2022-11-16 18:01:59,703] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1
  349. [WARNING] [2022-11-16 18:01:59,703] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 405 40
  350. [INFO] [2022-11-16 18:02:32,459] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/urls.py changed, reloading.
  351. [INFO] [2022-11-16 18:02:32,903] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  352. [WARNING] [2022-11-16 18:02:34,573] [log.py:224] [log:log_response] - Method Not Allowed: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1
  353. [WARNING] [2022-11-16 18:02:34,573] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 405 40
  354. [INFO] [2022-11-16 18:03:27,963] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/urls.py changed, reloading.
  355. [INFO] [2022-11-16 18:03:28,328] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  356. [ERROR] [2022-11-16 18:03:30,055] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1
  357. Traceback (most recent call last):
  358. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  359. response = get_response(request)
  360. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  361. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  362. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  363. return view_func(*args, **kwargs)
  364. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  365. return self.dispatch(request, *args, **kwargs)
  366. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  367. response = self.handle_exception(exc)
  368. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  369. self.raise_uncaught_exception(exc)
  370. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  371. raise exc
  372. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  373. response = handler(request, *args, **kwargs)
  374. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  375. return self.func(request, *args, **kwargs)
  376. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py", line 180, in get
  377. 'version_file': {'file_name': version_file.path.split('/')[-1], 'file_url': HTTP_HEAD + SOFTWARE_ROOT
  378. NameError: name 'SOFTWARE_ROOT' is not defined
  379. [ERROR] [2022-11-16 18:03:30,057] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 500 103453
  380. [INFO] [2022-11-16 18:03:50,457] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  381. [INFO] [2022-11-16 18:03:50,810] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  382. [INFO] [2022-11-16 18:03:52,995] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 789
  383. [INFO] [2022-11-16 18:06:01,629] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  384. [INFO] [2022-11-16 18:06:02,067] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  385. [INFO] [2022-11-16 18:07:02,426] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  386. [INFO] [2022-11-16 18:07:02,739] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  387. [INFO] [2022-11-16 18:07:05,178] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 789
  388. [INFO] [2022-11-16 18:07:56,078] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  389. [INFO] [2022-11-16 18:07:56,341] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  390. [INFO] [2022-11-16 18:07:57,493] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 789
  391. [INFO] [2022-11-16 18:08:39,481] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  392. [INFO] [2022-11-16 18:08:39,760] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  393. [INFO] [2022-11-16 18:08:41,122] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 789
  394. [INFO] [2022-11-16 18:17:43,341] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  395. [INFO] [2022-11-16 18:17:43,694] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  396. [INFO] [2022-11-16 18:17:48,325] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 789
  397. [INFO] [2022-11-16 18:18:46,167] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  398. [INFO] [2022-11-16 18:18:46,534] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  399. [INFO] [2022-11-16 18:18:50,669] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 917
  400. [INFO] [2022-11-16 18:19:25,343] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py changed, reloading.
  401. [INFO] [2022-11-16 18:19:25,598] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  402. [INFO] [2022-11-16 18:19:26,989] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 902
  403. [INFO] [2022-11-16 19:44:57,826] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py changed, reloading.
  404. [INFO] [2022-11-16 19:44:58,192] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  405. [INFO] [2022-11-16 19:45:03,995] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  406. [INFO] [2022-11-16 19:45:06,998] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 902
  407. [INFO] [2022-11-16 19:45:18,339] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py changed, reloading.
  408. [INFO] [2022-11-16 19:45:18,697] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  409. [INFO] [2022-11-16 19:45:22,580] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1/execute HTTP/1.1" 200 12
  410. [INFO] [2022-11-16 19:45:25,055] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/TestLaboratory_V1_Task_1 HTTP/1.1" 200 902
  411. [INFO] [2022-11-16 20:11:53,644] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  412. [INFO] [2022-11-16 20:11:54,058] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  413. [INFO] [2022-11-16 20:22:27,494] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  414. [INFO] [2022-11-16 20:22:27,796] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  415. [INFO] [2022-11-16 20:28:46,684] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  416. [INFO] [2022-11-16 20:28:47,116] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  417. [INFO] [2022-11-16 20:30:16,556] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  418. [INFO] [2022-11-16 20:30:16,941] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  419. [INFO] [2022-11-16 20:32:58,124] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  420. [INFO] [2022-11-16 20:32:58,453] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  421. [INFO] [2022-11-16 20:34:42,537] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  422. [INFO] [2022-11-16 20:34:42,837] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  423. [INFO] [2022-11-16 20:39:01,416] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  424. [INFO] [2022-11-16 20:39:01,827] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  425. [INFO] [2022-11-16 20:39:16,696] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  426. [INFO] [2022-11-16 20:39:17,077] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  427. [INFO] [2022-11-16 20:40:42,572] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  428. [INFO] [2022-11-16 20:40:42,882] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  429. [INFO] [2022-11-16 20:46:42,700] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  430. [INFO] [2022-11-16 20:46:43,108] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  431. [INFO] [2022-11-16 20:48:36,917] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  432. [INFO] [2022-11-16 20:48:37,182] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  433. [INFO] [2022-11-16 20:50:41,263] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  434. [INFO] [2022-11-16 20:50:41,628] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  435. [INFO] [2022-11-16 20:51:10,836] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  436. [INFO] [2022-11-16 20:51:11,154] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  437. [INFO] [2022-11-16 20:51:55,046] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  438. [INFO] [2022-11-16 20:51:55,383] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  439. [INFO] [2022-11-16 20:52:01,790] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  440. [INFO] [2022-11-16 20:52:02,051] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  441. [INFO] [2022-11-16 20:52:09,598] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  442. [INFO] [2022-11-16 20:52:09,899] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  443. [INFO] [2022-11-16 20:52:21,571] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  444. [INFO] [2022-11-16 20:52:21,880] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  445. [INFO] [2022-11-16 21:26:24,702] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  446. [INFO] [2022-11-16 21:26:25,197] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  447. [INFO] [2022-11-16 21:26:47,052] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  448. [INFO] [2022-11-16 21:26:47,476] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  449. [INFO] [2022-11-16 21:26:58,036] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  450. [INFO] [2022-11-16 21:26:58,356] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  451. [INFO] [2022-11-16 21:27:04,787] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  452. [INFO] [2022-11-16 21:27:05,047] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  453. [INFO] [2022-11-16 21:27:12,505] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  454. [INFO] [2022-11-16 21:27:12,744] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  455. [INFO] [2022-11-16 21:27:27,309] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  456. [INFO] [2022-11-16 21:27:27,551] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  457. [INFO] [2022-11-16 21:27:57,705] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  458. [INFO] [2022-11-16 21:27:58,059] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  459. [INFO] [2022-11-16 21:28:57,874] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  460. [INFO] [2022-11-16 21:28:58,288] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  461. [INFO] [2022-11-16 21:29:08,756] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  462. [INFO] [2022-11-16 21:29:09,003] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  463. [INFO] [2022-11-16 21:29:22,595] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  464. [INFO] [2022-11-16 21:29:22,871] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  465. [INFO] [2022-11-16 21:29:31,264] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  466. [INFO] [2022-11-16 21:29:31,532] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  467. [INFO] [2022-11-16 21:29:51,253] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  468. [INFO] [2022-11-16 21:29:51,537] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  469. [INFO] [2022-11-16 21:29:58,948] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  470. [INFO] [2022-11-16 21:29:59,240] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  471. [INFO] [2022-11-16 21:30:05,619] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  472. [INFO] [2022-11-16 21:30:05,920] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  473. [INFO] [2022-11-16 21:30:11,279] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  474. [INFO] [2022-11-16 21:30:11,535] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  475. [INFO] [2022-11-16 21:30:51,891] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  476. [INFO] [2022-11-16 21:30:52,233] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  477. [INFO] [2022-11-16 21:32:44,321] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  478. [INFO] [2022-11-16 21:32:44,662] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  479. [INFO] [2022-11-16 21:36:09,035] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  480. [INFO] [2022-11-16 21:36:09,411] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  481. [ERROR] [2022-11-16 21:37:56,391] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/software/TestLaboratory_V1_Software_1/report
  482. Traceback (most recent call last):
  483. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  484. response = get_response(request)
  485. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  486. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  487. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  488. return view_func(*args, **kwargs)
  489. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  490. return self.dispatch(request, *args, **kwargs)
  491. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  492. response = self.handle_exception(exc)
  493. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  494. self.raise_uncaught_exception(exc)
  495. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  496. raise exc
  497. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  498. response = handler(request, *args, **kwargs)
  499. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py", line 80, in get
  500. executor_name = User.object.filter(id=case.executor_id)[0].username
  501. AttributeError: type object 'User' has no attribute 'object'
  502. [ERROR] [2022-11-16 21:37:56,392] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/software/TestLaboratory_V1_Software_1/report HTTP/1.1" 500 98552
  503. [INFO] [2022-11-16 21:38:10,963] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py changed, reloading.
  504. [INFO] [2022-11-16 21:38:11,397] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  505. [INFO] [2022-11-16 21:38:39,508] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/software/TestLaboratory_V1_Software_1/report HTTP/1.1" 200 11264
  506. [WARNING] [2022-11-16 21:40:32,842] [log.py:224] [log:log_response] - Forbidden: /api/v1/test-tasks/beidou/list
  507. [WARNING] [2022-11-16 21:40:32,843] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/list HTTP/1.1" 403 43
  508. [ERROR] [2022-11-16 21:40:43,679] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/list
  509. Traceback (most recent call last):
  510. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  511. response = get_response(request)
  512. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  513. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  514. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  515. return view_func(*args, **kwargs)
  516. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  517. return self.dispatch(request, *args, **kwargs)
  518. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  519. response = self.handle_exception(exc)
  520. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  521. self.raise_uncaught_exception(exc)
  522. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  523. raise exc
  524. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  525. response = handler(request, *args, **kwargs)
  526. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__
  527. return self.func(request, *args, **kwargs)
  528. File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py", line 133, in get
  529. info.add({
  530. TypeError: unhashable type: 'dict'
  531. [ERROR] [2022-11-16 21:40:43,680] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/list HTTP/1.1" 500 101145
  532. [INFO] [2022-11-16 21:44:20,910] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py changed, reloading.
  533. [INFO] [2022-11-16 21:44:21,271] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  534. [INFO] [2022-11-16 21:44:50,456] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py changed, reloading.
  535. [INFO] [2022-11-16 21:44:50,795] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  536. [INFO] [2022-11-16 21:45:02,001] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/list HTTP/1.1" 200 623
  537. [INFO] [2022-11-16 21:45:35,038] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py changed, reloading.
  538. [INFO] [2022-11-16 21:45:35,425] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  539. [INFO] [2022-11-16 21:45:37,420] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/list HTTP/1.1" 200 537
  540. [INFO] [2022-11-16 21:45:48,257] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py changed, reloading.
  541. [INFO] [2022-11-16 21:45:48,629] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  542. [INFO] [2022-11-16 21:45:49,081] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/list HTTP/1.1" 200 226
  543. [INFO] [2022-11-16 21:47:01,159] [basehttp.py:161] [basehttp:log_message] - "GET /api/v1/test-tasks/beidou/info HTTP/1.1" 200 861
  544. [ERROR] [2022-11-16 21:48:53,259] [beidoutask.py:57] [beidoutask:post] - 测试计划已删除或不存在
  545. [WARNING] [2022-11-16 21:48:53,261] [log.py:224] [log:log_response] - Not Found: /api/v1/test-tasks/beidou/edit
  546. [WARNING] [2022-11-16 21:48:53,262] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/edit HTTP/1.1" 404 33
  547. [INFO] [2022-11-16 21:50:09,116] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/test-tasks/beidou/edit HTTP/1.1" 200 15