all-2023-03-12.log 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. [INFO] [2023-03-12 07:05:58,125] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  2. [INFO] [2023-03-12 07:07:34,693] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 169
  3. [INFO] [2023-03-12 07:07:57,994] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project HTTP/1.1" 200 385
  4. [INFO] [2023-03-12 07:08:13,992] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project/4 HTTP/1.1" 200 164
  5. [INFO] [2023-03-12 07:08:37,178] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task HTTP/1.1" 200 165
  6. [ERROR] [2023-03-12 07:08:57,319] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  7. Traceback (most recent call last):
  8. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  9. response = get_response(request)
  10. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  11. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  12. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  13. return view_func(*args, **kwargs)
  14. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  15. return self.dispatch(request, *args, **kwargs)
  16. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 511, in dispatch
  17. self.response = self.finalize_response(request, response, *args, **kwargs)
  18. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 423, in finalize_response
  19. assert isinstance(response, HttpResponseBase), (
  20. AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `<class 'NoneType'>`
  21. [ERROR] [2023-03-12 07:08:57,320] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/3 HTTP/1.1" 500 79736
  22. [INFO] [2023-03-12 07:09:16,836] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  23. [INFO] [2023-03-12 07:16:05,868] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  24. [INFO] [2023-03-12 07:16:06,164] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  25. [INFO] [2023-03-12 07:29:10,155] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  26. [INFO] [2023-03-12 07:29:10,457] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  27. [INFO] [2023-03-12 07:29:16,438] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  28. [INFO] [2023-03-12 07:30:18,657] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  29. [INFO] [2023-03-12 07:30:18,890] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  30. [INFO] [2023-03-12 07:33:59,054] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  31. [INFO] [2023-03-12 07:33:59,301] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  32. [INFO] [2023-03-12 07:34:02,913] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  33. [INFO] [2023-03-12 07:36:30,467] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  34. [INFO] [2023-03-12 07:36:30,795] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  35. [ERROR] [2023-03-12 07:36:33,805] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  36. Traceback (most recent call last):
  37. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  38. response = get_response(request)
  39. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  40. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  41. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  42. return view_func(*args, **kwargs)
  43. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  44. return self.dispatch(request, *args, **kwargs)
  45. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  46. response = self.handle_exception(exc)
  47. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  48. self.raise_uncaught_exception(exc)
  49. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  50. raise exc
  51. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  52. response = handler(request, *args, **kwargs)
  53. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 36, in post
  54. with open("annote/data_dictionary.json") as file:
  55. FileNotFoundError: [Errno 2] No such file or directory: 'annote/data_dictionary.json'
  56. [ERROR] [2023-03-12 07:36:33,806] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 94787
  57. [INFO] [2023-03-12 07:36:57,781] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  58. [INFO] [2023-03-12 07:36:57,959] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  59. [ERROR] [2023-03-12 07:37:01,601] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  60. Traceback (most recent call last):
  61. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  62. response = get_response(request)
  63. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  64. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  65. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  66. return view_func(*args, **kwargs)
  67. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  68. return self.dispatch(request, *args, **kwargs)
  69. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  70. response = self.handle_exception(exc)
  71. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  72. self.raise_uncaught_exception(exc)
  73. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  74. raise exc
  75. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  76. response = handler(request, *args, **kwargs)
  77. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 36, in post
  78. with open("../annote/data_dictionary.json") as file:
  79. FileNotFoundError: [Errno 2] No such file or directory: '../annote/data_dictionary.json'
  80. [ERROR] [2023-03-12 07:37:01,602] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 94802
  81. [INFO] [2023-03-12 07:37:26,907] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  82. [INFO] [2023-03-12 07:37:27,169] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  83. [INFO] [2023-03-12 07:37:29,904] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  84. [INFO] [2023-03-12 07:39:02,789] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  85. [INFO] [2023-03-12 07:39:02,994] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  86. [INFO] [2023-03-12 07:39:55,415] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py changed, reloading.
  87. [INFO] [2023-03-12 07:39:55,671] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  88. [INFO] [2023-03-12 07:40:15,383] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py changed, reloading.
  89. [INFO] [2023-03-12 07:40:15,724] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  90. [INFO] [2023-03-12 07:40:53,433] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  91. [INFO] [2023-03-12 07:41:06,818] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py changed, reloading.
  92. [INFO] [2023-03-12 07:41:07,170] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  93. [INFO] [2023-03-12 07:41:32,874] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  94. [ERROR] [2023-03-12 07:41:37,705] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  95. Traceback (most recent call last):
  96. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  97. response = get_response(request)
  98. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  99. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  100. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  101. return view_func(*args, **kwargs)
  102. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  103. return self.dispatch(request, *args, **kwargs)
  104. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  105. response = self.handle_exception(exc)
  106. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  107. self.raise_uncaught_exception(exc)
  108. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  109. raise exc
  110. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  111. response = handler(request, *args, **kwargs)
  112. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 41, in post
  113. data_type_list, purpose_list = annotate(source, lattice)
  114. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 80, in annotate
  115. params = load_json('params.json')
  116. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 115, in load_json
  117. with open(json_file, 'r') as load_f:
  118. FileNotFoundError: [Errno 2] No such file or directory: 'params.json'
  119. [ERROR] [2023-03-12 07:41:37,707] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 114707
  120. [INFO] [2023-03-12 07:42:01,734] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py changed, reloading.
  121. [INFO] [2023-03-12 07:42:02,038] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  122. [ERROR] [2023-03-12 07:42:09,432] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  123. Traceback (most recent call last):
  124. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  125. response = get_response(request)
  126. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  127. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  128. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  129. return view_func(*args, **kwargs)
  130. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  131. return self.dispatch(request, *args, **kwargs)
  132. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  133. response = self.handle_exception(exc)
  134. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  135. self.raise_uncaught_exception(exc)
  136. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  137. raise exc
  138. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  139. response = handler(request, *args, **kwargs)
  140. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 41, in post
  141. data_type_list, purpose_list = annotate(source, lattice)
  142. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 83, in annotate
  143. purpose_list = predict(source, args)
  144. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py", line 186, in predict
  145. model.load_state_dict(torch.load(output_dir, map_location=device))
  146. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 699, in load
  147. with _open_file_like(f, 'rb') as opened_file:
  148. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 230, in _open_file_like
  149. return _open_file(name_or_buffer, mode)
  150. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/torch/serialization.py", line 211, in __init__
  151. super(_open_file, self).__init__(open(name, mode))
  152. FileNotFoundError: [Errno 2] No such file or directory: 'purpose/saved_models/model.bin'
  153. [ERROR] [2023-03-12 07:42:09,433] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 142875
  154. [INFO] [2023-03-12 07:43:15,463] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  155. [INFO] [2023-03-12 07:43:55,261] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  156. [INFO] [2023-03-12 07:44:38,314] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15
  157. [INFO] [2023-03-12 07:52:53,796] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  158. [INFO] [2023-03-12 07:52:54,181] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  159. [INFO] [2023-03-12 07:57:03,819] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  160. [INFO] [2023-03-12 07:57:04,212] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  161. [INFO] [2023-03-12 07:57:53,582] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  162. [INFO] [2023-03-12 07:57:53,863] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  163. [INFO] [2023-03-12 07:58:36,930] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15327
  164. [ERROR] [2023-03-12 08:03:35,222] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行
  165. [INFO] [2023-03-12 08:04:07,066] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  166. [INFO] [2023-03-12 08:04:11,729] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15376
  167. [INFO] [2023-03-12 08:04:53,172] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  168. [ERROR] [2023-03-12 08:04:57,690] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行
  169. [INFO] [2023-03-12 08:05:29,640] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  170. [INFO] [2023-03-12 08:05:30,135] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  171. [INFO] [2023-03-12 08:06:11,589] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 200 15410
  172. [INFO] [2023-03-12 08:06:36,400] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py changed, reloading.
  173. [INFO] [2023-03-12 08:06:36,857] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  174. [ERROR] [2023-03-12 08:06:40,457] [taskview.py:33] [taskview:post] - 任务已执行完成,不能重复执行
  175. [ERROR] [2023-03-12 08:06:40,458] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/3
  176. [ERROR] [2023-03-12 08:06:40,458] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/3 HTTP/1.1" 500 42
  177. [INFO] [2023-03-12 08:08:39,553] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  178. [INFO] [2023-03-12 08:08:52,368] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  179. [INFO] [2023-03-12 08:11:56,617] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  180. [INFO] [2023-03-12 08:15:42,736] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  181. [INFO] [2023-03-12 08:19:21,383] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  182. [INFO] [2023-03-12 08:25:37,962] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  183. [INFO] [2023-03-12 08:25:56,176] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 337
  184. [INFO] [2023-03-12 08:30:29,589] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  185. [INFO] [2023-03-12 09:01:12,022] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  186. [ERROR] [2023-03-12 09:01:23,438] [projectlistview.py:33] [projectlistview:post] - 项目上传失败
  187. [ERROR] [2023-03-12 09:01:23,439] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-project
  188. [ERROR] [2023-03-12 09:01:23,440] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 500 18
  189. [INFO] [2023-03-12 09:02:06,403] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 200 243
  190. [INFO] [2023-03-12 09:02:10,644] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project HTTP/1.1" 200 129
  191. [INFO] [2023-03-12 09:02:19,584] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-project/1 HTTP/1.1" 200 172
  192. [INFO] [2023-03-12 09:02:31,937] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task HTTP/1.1" 200 165
  193. [INFO] [2023-03-12 09:02:35,199] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task HTTP/1.1" 200 169
  194. [INFO] [2023-03-12 09:03:26,924] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/1 HTTP/1.1" 200 117
  195. [ERROR] [2023-03-12 09:04:02,778] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1
  196. Traceback (most recent call last):
  197. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  198. response = get_response(request)
  199. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  200. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  201. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  202. return view_func(*args, **kwargs)
  203. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  204. return self.dispatch(request, *args, **kwargs)
  205. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  206. response = self.handle_exception(exc)
  207. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  208. self.raise_uncaught_exception(exc)
  209. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  210. raise exc
  211. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  212. response = handler(request, *args, **kwargs)
  213. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 49, in post
  214. data_type_list, purpose_list = annotate(source, lattice)
  215. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 82, in annotate
  216. data_type_list = extract_data_type(source, lattices, args)
  217. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py", line 162, in extract_data_type
  218. func_content_dict = split_file_by_func(file_name)
  219. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 95, in split_file_by_func
  220. content = file.read()
  221. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/codecs.py", line 322, in decode
  222. (result, consumed) = self._buffer_decode(data, self.errors, final)
  223. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 123: invalid start byte
  224. [ERROR] [2023-03-12 09:04:02,779] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 187305
  225. [INFO] [2023-03-12 09:06:58,904] [basehttp.py:161] [basehttp:log_message] - "PUT /api/retrieval-project/1 HTTP/1.1" 200 15
  226. [ERROR] [2023-03-12 09:08:39,500] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1
  227. Traceback (most recent call last):
  228. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
  229. response = get_response(request)
  230. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
  231. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  232. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  233. return view_func(*args, **kwargs)
  234. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
  235. return self.dispatch(request, *args, **kwargs)
  236. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
  237. response = self.handle_exception(exc)
  238. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
  239. self.raise_uncaught_exception(exc)
  240. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
  241. raise exc
  242. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
  243. response = handler(request, *args, **kwargs)
  244. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/views/taskview.py", line 49, in post
  245. data_type_list, purpose_list = annotate(source, lattice)
  246. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/annotate.py", line 82, in annotate
  247. data_type_list = extract_data_type(source, lattices, args)
  248. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py", line 162, in extract_data_type
  249. func_content_dict = split_file_by_func(file_name)
  250. File "/Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/utils.py", line 95, in split_file_by_func
  251. content = file.read()
  252. File "/Users/liufan/program/software/python/miniforge3/lib/python3.9/codecs.py", line 322, in decode
  253. (result, consumed) = self._buffer_decode(data, self.errors, final)
  254. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 123: invalid start byte
  255. [ERROR] [2023-03-12 09:08:39,501] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 187303
  256. [INFO] [2023-03-12 09:09:56,226] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/project/views/projectview.py changed, reloading.
  257. [INFO] [2023-03-12 09:09:56,642] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  258. [INFO] [2023-03-12 09:10:01,095] [basehttp.py:161] [basehttp:log_message] - "PUT /api/retrieval-project/1 HTTP/1.1" 200 15
  259. [INFO] [2023-03-12 09:10:40,466] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 200 15327
  260. [ERROR] [2023-03-12 09:10:48,584] [taskview.py:34] [taskview:post] - 任务已执行完成,不能重复执行
  261. [ERROR] [2023-03-12 09:10:48,585] [log.py:224] [log:log_response] - Internal Server Error: /api/retrieval-task/1
  262. [ERROR] [2023-03-12 09:10:48,585] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-task/1 HTTP/1.1" 500 42
  263. [INFO] [2023-03-12 09:10:56,043] [basehttp.py:161] [basehttp:log_message] - "GET /api/retrieval-task/1 HTTP/1.1" 200 17721
  264. [INFO] [2023-03-12 09:13:34,485] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/datatype/extract.py changed, reloading.
  265. [INFO] [2023-03-12 09:13:34,873] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  266. [INFO] [2023-03-12 09:14:27,260] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/apps/task/annote/purpose/predict.py changed, reloading.
  267. [INFO] [2023-03-12 09:14:27,670] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  268. [INFO] [2023-03-12 11:37:15,223] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/PrivacyRetrieval/settings.py changed, reloading.
  269. [INFO] [2023-03-12 13:24:27,965] [autoreload.py:637] [autoreload:run_with_reloader] - Watching for file changes with StatReloader
  270. [INFO] [2023-03-12 13:25:11,293] [basehttp.py:161] [basehttp:log_message] - "POST /api/retrieval-project HTTP/1.1" 200 261
  271. [INFO] [2023-03-13 15:51:23,799] [autoreload.py:251] [autoreload:trigger_reload] - /Users/liufan/program/PYTHON/PrivacyRetrieval/PrivacyRetrieval/settings.py changed, reloading.