Advertisement
Mochinov

Untitled

Oct 26th, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.76 KB | None | 0 0
  1.  
  2. 2023-10-26 17:45:43.127
  3. +------------------------------------
  4. 2023-10-26 17:45:43.127
  5. | For further information visit https://errors.pydantic.dev/2.3/v/string_type
  6. 2023-10-26 17:45:43.127
  7. | Input should be a valid string [type=string_type, input_value=False, input_type=bool]
  8. 2023-10-26 17:45:43.127
  9. | second_fa_enabled
  10. 2023-10-26 17:45:43.127
  11. | For further information visit https://errors.pydantic.dev/2.3/v/missing
  12. 2023-10-26 17:45:43.127
  13. | Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  14. 2023-10-26 17:45:43.127
  15. | role
  16. 2023-10-26 17:45:43.127
  17. | For further information visit https://errors.pydantic.dev/2.3/v/missing
  18. 2023-10-26 17:45:43.127
  19. | Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  20. 2023-10-26 17:45:43.127
  21. | position
  22. 2023-10-26 17:45:43.127
  23. | For further information visit https://errors.pydantic.dev/2.3/v/missing
  24. 2023-10-26 17:45:43.127
  25. | Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  26. 2023-10-26 17:45:43.127
  27. | last_name
  28. 2023-10-26 17:45:43.127
  29. | For further information visit https://errors.pydantic.dev/2.3/v/missing
  30. 2023-10-26 17:45:43.127
  31. | Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  32. 2023-10-26 17:45:43.127
  33. | phone_confirmed
  34. 2023-10-26 17:45:43.127
  35. | For further information visit https://errors.pydantic.dev/2.3/v/string_type
  36. 2023-10-26 17:45:43.127
  37. | Input should be a valid string [type=string_type, input_value=False, input_type=bool]
  38. 2023-10-26 17:45:43.127
  39. | email_confirmed
  40. 2023-10-26 17:45:43.127
  41. | pydantic_core._pydantic_core.ValidationError: 6 validation errors for UserProfileSchema
  42. 2023-10-26 17:45:43.127
  43. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  44. 2023-10-26 17:45:43.127
  45. | return cls.__pydantic_validator__.validate_python(
  46. 2023-10-26 17:45:43.127
  47. | File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 504, in model_validate
  48. 2023-10-26 17:45:43.127
  49. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  50. 2023-10-26 17:45:43.127
  51. | return UserProfileSchema.model_validate(user)
  52. 2023-10-26 17:45:43.127
  53. | File "/code/src/routers/users.py", line 81, in get_current_user_profile
  54. 2023-10-26 17:45:43.127
  55. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  56. 2023-10-26 17:45:43.127
  57. | return await dependant.call(**values)
  58. 2023-10-26 17:45:43.127
  59. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  60. 2023-10-26 17:45:43.127
  61. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  62. 2023-10-26 17:45:43.127
  63. | raw_response = await run_endpoint_function(
  64. 2023-10-26 17:45:43.127
  65. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  66. 2023-10-26 17:45:43.127
  67. | ^^^^^^^^^^^^^^^^^^^
  68. 2023-10-26 17:45:43.127
  69. | response = await func(request)
  70. 2023-10-26 17:45:43.127
  71. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  72. 2023-10-26 17:45:43.127
  73. | await self.app(scope, receive, send)
  74. 2023-10-26 17:45:43.127
  75. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  76. 2023-10-26 17:45:43.127
  77. | await route.handle(scope, receive, send)
  78. 2023-10-26 17:45:43.126
  79. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  80. 2023-10-26 17:45:43.126
  81. | await self.app(scope, receive, send)
  82. 2023-10-26 17:45:43.126
  83. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  84. 2023-10-26 17:45:43.126
  85. | raise e
  86. 2023-10-26 17:45:43.126
  87. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  88. 2023-10-26 17:45:43.126
  89. | await self.app(scope, receive, sender)
  90. 2023-10-26 17:45:43.126
  91. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  92. 2023-10-26 17:45:43.126
  93. | raise exc
  94. 2023-10-26 17:45:43.126
  95. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  96. 2023-10-26 17:45:43.126
  97. | await self.app(scope, receive_or_disconnect, send_no_error)
  98. 2023-10-26 17:45:43.126
  99. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  100. 2023-10-26 17:45:43.126
  101. | raise app_exc
  102. 2023-10-26 17:45:43.126
  103. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  104. 2023-10-26 17:45:43.126
  105. | ^^^^^^^^^^^^^^^^^^^^^^^^
  106. 2023-10-26 17:45:43.126
  107. | return await call_next(request)
  108. 2023-10-26 17:45:43.126
  109. | File "/code/src/middlewares.py", line 53, in dispatch
  110. 2023-10-26 17:45:43.126
  111. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  112. 2023-10-26 17:45:43.126
  113. | response = await self.dispatch_func(request, call_next)
  114. 2023-10-26 17:45:43.126
  115. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  116. 2023-10-26 17:45:43.126
  117. | Traceback (most recent call last):
  118. 2023-10-26 17:45:43.126
  119. |
  120. 2023-10-26 17:45:43.126
  121. | During handling of the above exception, another exception occurred:
  122. 2023-10-26 17:45:43.126
  123. |
  124. 2023-10-26 17:45:43.126
  125. | anyio.EndOfStream
  126. 2023-10-26 17:45:43.126
  127. | raise EndOfStream
  128. 2023-10-26 17:45:43.126
  129. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
  130. 2023-10-26 17:45:43.126
  131. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  132. 2023-10-26 17:45:43.126
  133. | message = await recv_stream.receive()
  134. 2023-10-26 17:45:43.126
  135. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
  136. 2023-10-26 17:45:43.126
  137. | Traceback (most recent call last):
  138. 2023-10-26 17:45:43.126
  139. |
  140. 2023-10-26 17:45:43.126
  141. | During handling of the above exception, another exception occurred:
  142. 2023-10-26 17:45:43.126
  143. |
  144. 2023-10-26 17:45:43.126
  145. | anyio.WouldBlock
  146. 2023-10-26 17:45:43.126
  147. | raise WouldBlock
  148. 2023-10-26 17:45:43.126
  149. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
  150. 2023-10-26 17:45:43.126
  151. | ^^^^^^^^^^^^^^^^^^^^^
  152. 2023-10-26 17:45:43.126
  153. | return self.receive_nowait()
  154. 2023-10-26 17:45:43.126
  155. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
  156. 2023-10-26 17:45:43.126
  157. | Traceback (most recent call last):
  158. 2023-10-26 17:45:43.126
  159. +-+---------------- 1 ----------------
  160. 2023-10-26 17:45:43.126
  161. | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  162. 2023-10-26 17:45:43.126
  163. | raise BaseExceptionGroup(
  164. 2023-10-26 17:45:43.126
  165. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 664, in __aexit__
  166. 2023-10-26 17:45:43.126
  167. | async with anyio.create_task_group() as task_group:
  168. 2023-10-26 17:45:43.126
  169. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
  170. 2023-10-26 17:45:43.126
  171. | await self.app(scope, receive, send)
  172. 2023-10-26 17:45:43.126
  173. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
  174. 2023-10-26 17:45:43.126
  175. | await self.simple_response(scope, receive, send, request_headers=headers)
  176. 2023-10-26 17:45:43.126
  177. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
  178. 2023-10-26 17:45:43.126
  179. | await self.app(scope, receive, _send)
  180. 2023-10-26 17:45:43.126
  181. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
  182. 2023-10-26 17:45:43.126
  183. | raise exc
  184. 2023-10-26 17:45:43.126
  185. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
  186. 2023-10-26 17:45:43.126
  187. | await self.middleware_stack(scope, receive, send)
  188. 2023-10-26 17:45:43.126
  189. | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
  190. 2023-10-26 17:45:43.126
  191. | await super().__call__(scope, receive, send)
  192. 2023-10-26 17:45:43.126
  193. | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
  194. 2023-10-26 17:45:43.126
  195. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  196. 2023-10-26 17:45:43.126
  197. | return await self.app(scope, receive, send)
  198. 2023-10-26 17:45:43.126
  199. | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  200. 2023-10-26 17:45:43.126
  201. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  202. 2023-10-26 17:45:43.126
  203. | result = await app( # type: ignore[func-returns-value]
  204. 2023-10-26 17:45:43.126
  205. | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
  206. 2023-10-26 17:45:43.126
  207. + Exception Group Traceback (most recent call last):
  208. 2023-10-26 17:45:43.126
  209.  
  210. 2023-10-26 17:45:43.126
  211. During handling of the above exception, another exception occurred:
  212. 2023-10-26 17:45:43.126
  213.  
  214. 2023-10-26 17:45:43.126
  215. For further information visit https://errors.pydantic.dev/2.3/v/string_type
  216. 2023-10-26 17:45:43.126
  217. Input should be a valid string [type=string_type, input_value=False, input_type=bool]
  218. 2023-10-26 17:45:43.126
  219. second_fa_enabled
  220. 2023-10-26 17:45:43.126
  221. For further information visit https://errors.pydantic.dev/2.3/v/missing
  222. 2023-10-26 17:45:43.126
  223. Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  224. 2023-10-26 17:45:43.126
  225. role
  226. 2023-10-26 17:45:43.126
  227. For further information visit https://errors.pydantic.dev/2.3/v/missing
  228. 2023-10-26 17:45:43.126
  229. Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  230. 2023-10-26 17:45:43.126
  231. position
  232. 2023-10-26 17:45:43.126
  233. For further information visit https://errors.pydantic.dev/2.3/v/missing
  234. 2023-10-26 17:45:43.126
  235. Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  236. 2023-10-26 17:45:43.126
  237. last_name
  238. 2023-10-26 17:45:43.126
  239. For further information visit https://errors.pydantic.dev/2.3/v/missing
  240. 2023-10-26 17:45:43.126
  241. Field required [type=missing, input_value=User(uuid=UUID('7795c09f-...ne, positions_uuid=None), input_type=User]
  242. 2023-10-26 17:45:43.126
  243. phone_confirmed
  244. 2023-10-26 17:45:43.126
  245. For further information visit https://errors.pydantic.dev/2.3/v/string_type
  246. 2023-10-26 17:45:43.126
  247. Input should be a valid string [type=string_type, input_value=False, input_type=bool]
  248. 2023-10-26 17:45:43.126
  249. email_confirmed
  250. 2023-10-26 17:45:43.126
  251. pydantic_core._pydantic_core.ValidationError: 6 validation errors for UserProfileSchema
  252. 2023-10-26 17:45:43.126
  253. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  254. 2023-10-26 17:45:43.126
  255. return cls.__pydantic_validator__.validate_python(
  256. 2023-10-26 17:45:43.126
  257. File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 504, in model_validate
  258. 2023-10-26 17:45:43.126
  259. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  260. 2023-10-26 17:45:43.126
  261. return UserProfileSchema.model_validate(user)
  262. 2023-10-26 17:45:43.126
  263. File "/code/src/routers/users.py", line 81, in get_current_user_profile
  264. 2023-10-26 17:45:43.126
  265. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  266. 2023-10-26 17:45:43.126
  267. return await dependant.call(**values)
  268. 2023-10-26 17:45:43.126
  269. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  270. 2023-10-26 17:45:43.126
  271. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  272. 2023-10-26 17:45:43.126
  273. raw_response = await run_endpoint_function(
  274. 2023-10-26 17:45:43.126
  275. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  276. 2023-10-26 17:45:43.126
  277. ^^^^^^^^^^^^^^^^^^^
  278. 2023-10-26 17:45:43.126
  279. response = await func(request)
  280. 2023-10-26 17:45:43.126
  281. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  282. 2023-10-26 17:45:43.126
  283. await self.app(scope, receive, send)
  284. 2023-10-26 17:45:43.126
  285. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  286. 2023-10-26 17:45:43.126
  287. await route.handle(scope, receive, send)
  288. 2023-10-26 17:45:43.126
  289. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  290. 2023-10-26 17:45:43.126
  291. await self.app(scope, receive, send)
  292. 2023-10-26 17:45:43.126
  293. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  294. 2023-10-26 17:45:43.126
  295. raise e
  296. 2023-10-26 17:45:43.126
  297. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  298. 2023-10-26 17:45:43.126
  299. await self.app(scope, receive, sender)
  300. 2023-10-26 17:45:43.126
  301. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  302. 2023-10-26 17:45:43.126
  303. raise exc
  304. 2023-10-26 17:45:43.126
  305. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  306. 2023-10-26 17:45:43.126
  307. await self.app(scope, receive_or_disconnect, send_no_error)
  308. 2023-10-26 17:45:43.126
  309. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  310. 2023-10-26 17:45:43.126
  311. raise app_exc
  312. 2023-10-26 17:45:43.126
  313. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  314. 2023-10-26 17:45:43.126
  315. ^^^^^^^^^^^^^^^^^^^^^^^^
  316. 2023-10-26 17:45:43.126
  317. return await call_next(request)
  318. 2023-10-26 17:45:43.126
  319. File "/code/src/middlewares.py", line 53, in dispatch
  320. 2023-10-26 17:45:43.126
  321. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  322. 2023-10-26 17:45:43.126
  323. response = await self.dispatch_func(request, call_next)
  324. 2023-10-26 17:45:43.126
  325. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  326. 2023-10-26 17:45:43.126
  327. Traceback (most recent call last):
  328. 2023-10-26 17:45:43.126
  329. ERROR: Exception in ASGI application
  330. 2023-10-26 17:45:43.122
  331. INFO: 10.40.96.229:0 - "GET /user/me HTTP/1.1" 500 Internal Server Error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement