all-2021-03-12.log 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. [2021-03-12 08:42:46,731] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  2. [2021-03-12 08:43:00,571] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  3. Traceback (most recent call last):
  4. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  5. response = get_response(request)
  6. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  7. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  8. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  9. return self.dispatch(request, *args, **kwargs)
  10. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  11. return handler(request, *args, **kwargs)
  12. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 21, in post
  13. res = ocr.predict(paths=image_path, invoice_type=1)
  14. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 73, in predict
  15. predicted_data = self.read_images(paths)
  16. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 52, in read_images
  17. img_path), "The {} isn't a valid file.".format(img_path)
  18. AssertionError: The ./PaddleOCR/doc/imgs/test2.jpg isn't a valid file.
  19. [2021-03-12 08:43:00,574] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 84812
  20. [2021-03-12 08:43:22,651] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  21. [2021-03-12 08:43:33,537] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
  22. [2021-03-12 08:44:13,453] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  23. [2021-03-12 08:45:54,862] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
  24. [2021-03-12 08:47:56,159] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  25. [2021-03-12 08:48:05,749] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 444
  26. [2021-03-12 08:48:44,838] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  27. [2021-03-12 08:48:51,624] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  28. [2021-03-12 09:03:29,840] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  29. [2021-03-12 09:08:12,134] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  30. [2021-03-12 09:08:16,377] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  31. Traceback (most recent call last):
  32. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  33. response = get_response(request)
  34. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  35. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  36. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  37. return self.dispatch(request, *args, **kwargs)
  38. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  39. return handler(request, *args, **kwargs)
  40. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 10, in post
  41. invoice_type = request.post.get('invoice_type', 1)
  42. AttributeError: 'WSGIRequest' object has no attribute 'post'
  43. [2021-03-12 09:08:16,381] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 78950
  44. [2021-03-12 09:09:49,649] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  45. [2021-03-12 09:10:09,069] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  46. [2021-03-12 09:10:22,290] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 449
  47. [2021-03-12 09:12:18,278] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  48. [2021-03-12 09:26:08,702] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  49. [2021-03-12 09:26:33,841] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  50. [2021-03-12 09:28:00,729] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
  51. [2021-03-12 09:28:04,137] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  52. [2021-03-12 09:28:08,209] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
  53. [2021-03-12 09:28:11,355] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  54. [2021-03-12 09:29:26,093] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
  55. [2021-03-12 09:29:29,345] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  56. [2021-03-12 09:29:34,327] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
  57. [2021-03-12 09:29:37,492] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  58. [2021-03-12 09:29:53,724] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\invoice_ocr\settings.py changed, reloading.
  59. [2021-03-12 09:34:51,274] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  60. [2021-03-12 09:55:49,284] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  61. [2021-03-12 10:17:38,892] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  62. [2021-03-12 10:17:47,253] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  63. [2021-03-12 10:20:03,567] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  64. [2021-03-12 10:21:00,587] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  65. [2021-03-12 10:21:30,968] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  66. [2021-03-12 10:21:37,317] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 456
  67. [2021-03-12 10:22:53,991] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  68. [2021-03-12 10:23:01,293] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
  69. [2021-03-12 10:24:09,370] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  70. Traceback (most recent call last):
  71. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  72. response = get_response(request)
  73. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  74. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  75. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  76. return self.dispatch(request, *args, **kwargs)
  77. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  78. return handler(request, *args, **kwargs)
  79. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
  80. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  81. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  82. raise TypeError("The input data is inconsistent with expectations.")
  83. TypeError: The input data is inconsistent with expectations.
  84. [2021-03-12 10:24:09,371] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82610
  85. [2021-03-12 10:27:17,559] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  86. Traceback (most recent call last):
  87. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  88. response = get_response(request)
  89. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  90. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  91. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  92. return self.dispatch(request, *args, **kwargs)
  93. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  94. return handler(request, *args, **kwargs)
  95. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
  96. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  97. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  98. raise TypeError("The input data is inconsistent with expectations.")
  99. TypeError: The input data is inconsistent with expectations.
  100. [2021-03-12 10:27:17,560] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82610
  101. [2021-03-12 10:30:17,393] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  102. Traceback (most recent call last):
  103. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  104. response = get_response(request)
  105. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  106. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  107. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  108. return self.dispatch(request, *args, **kwargs)
  109. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  110. return handler(request, *args, **kwargs)
  111. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
  112. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  113. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  114. raise TypeError("The input data is inconsistent with expectations.")
  115. TypeError: The input data is inconsistent with expectations.
  116. [2021-03-12 10:30:17,394] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82628
  117. [2021-03-12 10:36:51,451] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
  118. Traceback (most recent call last):
  119. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  120. response = get_response(request)
  121. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  122. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  123. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  124. return self.dispatch(request, *args, **kwargs)
  125. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  126. return handler(request, *args, **kwargs)
  127. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
  128. images = request.FILES.getlist('images')
  129. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
  130. self._load_post_and_files()
  131. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
  132. self._post, self._files = self.parse_file_upload(self.META, data)
  133. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
  134. parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
  135. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
  136. raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
  137. django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
  138. [2021-03-12 10:36:51,461] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
  139. [2021-03-12 10:39:24,107] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
  140. Traceback (most recent call last):
  141. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  142. response = get_response(request)
  143. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  144. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  145. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  146. return self.dispatch(request, *args, **kwargs)
  147. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  148. return handler(request, *args, **kwargs)
  149. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
  150. images = request.FILES.getlist('images')
  151. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
  152. self._load_post_and_files()
  153. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
  154. self._post, self._files = self.parse_file_upload(self.META, data)
  155. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
  156. parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
  157. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
  158. raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
  159. django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
  160. [2021-03-12 10:39:24,108] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
  161. [2021-03-12 10:53:30,675] [log.py:230] [log:log_response] [WARNING]- Bad request (Unable to parse request body): /ocr/invoice_ocr/
  162. Traceback (most recent call last):
  163. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  164. response = get_response(request)
  165. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  166. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  167. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  168. return self.dispatch(request, *args, **kwargs)
  169. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  170. return handler(request, *args, **kwargs)
  171. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 9, in post
  172. images = request.FILES.getlist('images')
  173. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\wsgi.py", line 116, in FILES
  174. self._load_post_and_files()
  175. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 350, in _load_post_and_files
  176. self._post, self._files = self.parse_file_upload(self.META, data)
  177. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\request.py", line 309, in parse_file_upload
  178. parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
  179. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\http\multipartparser.py", line 77, in __init__
  180. raise MultiPartParserError('Invalid boundary in multipart: %s' % force_str(boundary))
  181. django.http.multipartparser.MultiPartParserError: Invalid boundary in multipart: None
  182. [2021-03-12 10:53:30,676] [basehttp.py:157] [basehttp:log_message] [WARNING]- "POST /ocr/invoice_ocr/ HTTP/1.1" 400 143
  183. [2021-03-12 10:54:10,303] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  184. Traceback (most recent call last):
  185. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  186. response = get_response(request)
  187. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  188. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  189. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  190. return self.dispatch(request, *args, **kwargs)
  191. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  192. return handler(request, *args, **kwargs)
  193. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
  194. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  195. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  196. raise TypeError("The input data is inconsistent with expectations.")
  197. TypeError: The input data is inconsistent with expectations.
  198. [2021-03-12 10:54:10,304] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82628
  199. [2021-03-12 11:13:17,809] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  200. [2021-03-12 11:14:31,507] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  201. Traceback (most recent call last):
  202. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  203. response = get_response(request)
  204. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  205. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  206. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  207. return self.dispatch(request, *args, **kwargs)
  208. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  209. return handler(request, *args, **kwargs)
  210. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 17, in post
  211. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  212. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  213. raise TypeError("The input data is inconsistent with expectations.")
  214. TypeError: The input data is inconsistent with expectations.
  215. [2021-03-12 11:14:31,509] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 84633
  216. [2021-03-12 11:18:02,722] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
  217. [2021-03-12 11:22:41,428] [autoreload.py:240] [autoreload:trigger_reload] [INFO]- D:\pythonProject\invoice_ocr\ocr\views.py changed, reloading.
  218. [2021-03-12 11:22:46,928] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  219. [2021-03-12 11:23:01,554] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  220. [2021-03-12 11:23:10,062] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
  221. [2021-03-12 11:23:23,249] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 442
  222. [2021-03-12 11:23:28,630] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 73
  223. [2021-03-12 11:23:33,706] [log.py:230] [log:log_response] [ERROR]- Internal Server Error: /ocr/invoice_ocr/
  224. Traceback (most recent call last):
  225. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
  226. response = get_response(request)
  227. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
  228. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  229. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 70, in view
  230. return self.dispatch(request, *args, **kwargs)
  231. File "C:\Users\t\.virtualenvs\invoice_ocr-XlsmZNoZ\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
  232. return handler(request, *args, **kwargs)
  233. File "D:\pythonProject\invoice_ocr\ocr\views.py", line 21, in post
  234. res = ocr.predict(images=image_list, invoice_type=invoice_type)
  235. File "D:\pythonProject\invoice_ocr\utils\PaddleOCR\deploy\hubserving\ocr_system\module.py", line 75, in predict
  236. raise TypeError("The input data is inconsistent with expectations.")
  237. TypeError: The input data is inconsistent with expectations.
  238. [2021-03-12 11:23:33,707] [basehttp.py:157] [basehttp:log_message] [ERROR]- "POST /ocr/invoice_ocr/ HTTP/1.1" 500 82466
  239. [2021-03-12 11:24:25,767] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  240. [2021-03-12 11:24:28,224] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 61
  241. [2021-03-12 12:07:10,402] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  242. [2021-03-12 12:07:14,765] [log.py:230] [log:log_response] [WARNING]- Not Found: /
  243. [2021-03-12 12:07:14,766] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET / HTTP/1.1" 404 2030
  244. [2021-03-12 12:07:14,772] [log.py:230] [log:log_response] [WARNING]- Not Found: /
  245. [2021-03-12 12:07:14,772] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET / HTTP/1.1" 404 2030
  246. [2021-03-12 12:07:14,840] [log.py:230] [log:log_response] [WARNING]- Not Found: /favicon.ico
  247. [2021-03-12 12:07:14,840] [basehttp.py:157] [basehttp:log_message] [WARNING]- "GET /favicon.ico HTTP/1.1" 404 2081
  248. [2021-03-12 12:07:19,604] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin HTTP/1.1" 301 0
  249. [2021-03-12 12:07:19,623] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/ HTTP/1.1" 302 0
  250. [2021-03-12 12:07:19,701] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2194
  251. [2021-03-12 12:07:19,728] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/base.css HTTP/1.1" 200 16307
  252. [2021-03-12 12:07:19,733] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2138
  253. [2021-03-12 12:07:19,734] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/login.css HTTP/1.1" 200 1185
  254. [2021-03-12 12:07:19,736] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/responsive.css HTTP/1.1" 200 18344
  255. [2021-03-12 12:07:19,739] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 1360
  256. [2021-03-12 12:07:19,751] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
  257. [2021-03-12 12:07:19,788] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
  258. [2021-03-12 12:07:19,788] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
  259. [2021-03-12 12:07:26,692] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/ HTTP/1.1" 302 0
  260. [2021-03-12 12:07:26,707] [basehttp.py:157] [basehttp:log_message] [INFO]- "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2194
  261. [2021-03-12 14:04:43,609] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  262. [2021-03-12 14:05:58,993] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454
  263. [2021-03-12 14:06:14,431] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
  264. [2021-03-12 14:06:30,574] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 374
  265. [2021-03-12 14:09:16,172] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  266. [2021-03-12 14:09:23,605] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 286
  267. [2021-03-12 14:10:35,165] [autoreload.py:617] [autoreload:run_with_reloader] [INFO]- Watching for file changes with StatReloader
  268. [2021-03-12 14:10:42,951] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 374
  269. [2021-03-12 14:11:00,533] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 447
  270. [2021-03-12 14:11:13,776] [basehttp.py:157] [basehttp:log_message] [INFO]- "POST /ocr/invoice_ocr/ HTTP/1.1" 200 454