[INFO] [2022-11-16 11:11:24,701] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:14:13,388] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:14:59,577] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:19:01,923] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-11-16 11:19:16,724] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 292 [INFO] [2022-11-16 11:20:04,630] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 281 [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 [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. [INFO] [2022-11-16 11:21:21,549] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:21:52,194] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:22:22,580] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-11-16 11:34:22,971] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [INFO] [2022-11-16 11:36:16,515] [basehttp.py:161] [basehttp:log_message] - "POST /api/v1/users/login HTTP/1.1" 200 281 [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post BeidouCase.objects.create(**params_dict) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create obj.save(force_insert=True, using=self.db) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save self.save_base(using=using, force_insert=force_insert, File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base updated = self._save_table( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert return manager._insert( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'") [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 [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) 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`))') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post BeidouCase.objects.create(**params_dict) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create obj.save(force_insert=True, using=self.db) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save self.save_base(using=using, force_insert=force_insert, File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base updated = self._save_table( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert return manager._insert( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) 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`))') [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 [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. [INFO] [2022-11-16 11:37:48,611] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 55, in post BeidouCase.objects.create(**params_dict) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create obj.save(force_insert=True, using=self.db) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 726, in save self.save_base(using=using, force_insert=force_insert, File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 763, in save_base updated = self._save_table( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 868, in _save_table results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/base.py", line 906, in _do_insert return manager._insert( File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 170, in execute result = self._query(query) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/cursors.py", line 328, in _query conn.query(q) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 516, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 727, in _read_query_result result.read() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 1066, in read first_packet = self.connection._read_packet() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/connections.py", line 683, in _read_packet packet.check_error() File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/protocol.py", line 220, in check_error err.raise_mysql_exception(self._data) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/pymysql/err.py", line 109, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.IntegrityError: (1062, "Duplicate entry 'TestLaboratory_V1_BeidouCase_1' for key 'beidou_case.PRIMARY'") [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 [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. [INFO] [2022-11-16 11:38:32,255] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 11:51:29,250] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 11:54:22,609] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutaskexecute.py", line 49, in post beidou_case.update(**params_dict) AttributeError: 'BeidouCase' object has no attribute 'update' [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 [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. [INFO] [2022-11-16 12:00:20,829] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 17:44:04,338] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 17:51:28,167] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 17:56:53,956] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 17:57:34,104] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 17:57:55,095] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 17:59:08,090] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 18:00:46,646] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 [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. [INFO] [2022-11-16 18:02:32,903] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 [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. [INFO] [2022-11-16 18:03:28,328] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__ return self.func(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutask.py", line 180, in get 'version_file': {'file_name': version_file.path.split('/')[-1], 'file_url': HTTP_HEAD + SOFTWARE_ROOT NameError: name 'SOFTWARE_ROOT' is not defined [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 [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. [INFO] [2022-11-16 18:03:50,810] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:06:02,067] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 18:07:02,739] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:07:56,341] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:08:39,760] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:17:43,694] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:18:46,534] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 18:19:25,598] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 19:44:58,192] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 [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. [INFO] [2022-11-16 19:45:18,697] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 [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. [INFO] [2022-11-16 20:11:54,058] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:22:27,796] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:28:47,116] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:30:16,941] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:32:58,453] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:34:42,837] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:39:01,827] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:39:17,077] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:40:42,882] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:46:43,108] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:48:37,182] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:50:41,628] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:51:11,154] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:51:55,383] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:52:02,051] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:52:09,899] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 20:52:21,880] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:26:25,197] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:26:47,476] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:26:58,356] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:27:05,047] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:27:12,744] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:27:27,551] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:27:58,059] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:28:58,288] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:29:09,003] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:29:22,871] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:29:31,532] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:29:51,537] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:29:59,240] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:30:05,920] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:30:11,535] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:30:52,233] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:32:44,662] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:36:09,411] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/software/views/report.py", line 80, in get executor_name = User.object.filter(id=case.executor_id)[0].username AttributeError: type object 'User' has no attribute 'object' [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 [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. [INFO] [2022-11-16 21:38:11,397] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [WARNING] [2022-11-16 21:40:32,842] [log.py:224] [log:log_response] - Forbidden: /api/v1/test-tasks/beidou/list [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 [ERROR] [2022-11-16 21:40:43,679] [log.py:224] [log:log_response] - Internal Server Error: /api/v1/test-tasks/beidou/list Traceback (most recent call last): File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/user/middleware/rolecontrol.py", line 48, in __call__ return self.func(request, *args, **kwargs) File "/Users/liufan/program/PYTHON/TestLaboratoryGit/TestLaboratory/apps/task/views/beidoutasklist.py", line 133, in get info.add({ TypeError: unhashable type: 'dict' [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 [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. [INFO] [2022-11-16 21:44:21,271] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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. [INFO] [2022-11-16 21:44:50,795] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 21:45:35,425] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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. [INFO] [2022-11-16 21:45:48,629] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader [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 [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 [ERROR] [2022-11-16 21:48:53,259] [beidoutask.py:57] [beidoutask:post] - 测试计划已删除或不存在 [WARNING] [2022-11-16 21:48:53,261] [log.py:224] [log:log_response] - Not Found: /api/v1/test-tasks/beidou/edit [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 [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