Advertisement
Mochinov

Untitled

Nov 10th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.71 KB | None | 0 0
  1. INFO: 10.50.73.14:29941 - "GET /health HTTP/1.1" 200 OK
  2.  
  3. 2023-11-10 12:41:08.828
  4. INFO: 10.50.73.14:20894 - "GET /health HTTP/1.1" 200 OK
  5. 2023-11-10 12:41:08.827
  6. INFO: 10.50.62.221:28325 - "GET /health HTTP/1.1" 200 OK
  7. 2023-11-10 12:41:08.822
  8. INFO: 10.50.27.218:58489 - "GET /health HTTP/1.1" 200 OK
  9. 2023-11-10 12:41:08.782
  10. INFO: 10.50.62.175:55674 - "GET /health HTTP/1.1" 200 OK
  11. 2023-11-10 12:41:08.781
  12. INFO: 10.50.43.237:65459 - "GET /health HTTP/1.1" 200 OK
  13. 2023-11-10 12:41:03.900
  14. INFO: 10.50.39.87:43974 - "GET /health HTTP/1.1" 200 OK
  15. 2023-11-10 12:40:52.641
  16. +------------------------------------
  17. 2023-11-10 12:40:52.641
  18. | services.otp.OtpRateLimitError: OTP can be generated every 3.0 minutes.
  19. 2023-11-10 12:40:52.641
  20. | raise OtpRateLimitError(user_uuid=user_uuid)
  21. 2023-11-10 12:40:52.641
  22. | File "/code/src/services/twilio.py", line 101, in send_otp
  23. 2023-11-10 12:40:52.641
  24. | await twilio_service.send_otp(to=new_phone_data.phone, user_uuid=user.uuid)
  25. 2023-11-10 12:40:52.641
  26. | File "/code/src/routers/users.py", line 175, in change_phone
  27. 2023-11-10 12:40:52.641
  28. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29. 2023-11-10 12:40:52.641
  30. | return await dependant.call(**values)
  31. 2023-11-10 12:40:52.641
  32. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  33. 2023-11-10 12:40:52.641
  34. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  35. 2023-11-10 12:40:52.641
  36. | raw_response = await run_endpoint_function(
  37. 2023-11-10 12:40:52.641
  38. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  39. 2023-11-10 12:40:52.641
  40. | ^^^^^^^^^^^^^^^^^^^
  41. 2023-11-10 12:40:52.641
  42. | response = await func(request)
  43. 2023-11-10 12:40:52.641
  44. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  45. 2023-11-10 12:40:52.641
  46. | await self.app(scope, receive, send)
  47. 2023-11-10 12:40:52.641
  48. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  49. 2023-11-10 12:40:52.641
  50. | await route.handle(scope, receive, send)
  51. 2023-11-10 12:40:52.641
  52. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  53. 2023-11-10 12:40:52.641
  54. | await self.app(scope, receive, send)
  55. 2023-11-10 12:40:52.641
  56. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  57. 2023-11-10 12:40:52.641
  58. | raise e
  59. 2023-11-10 12:40:52.641
  60. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  61. 2023-11-10 12:40:52.641
  62. | await self.app(scope, receive, sender)
  63. 2023-11-10 12:40:52.641
  64. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  65. 2023-11-10 12:40:52.641
  66. | raise exc
  67. 2023-11-10 12:40:52.641
  68. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  69. 2023-11-10 12:40:52.641
  70. | await self.app(scope, receive_or_disconnect, send_no_error)
  71. 2023-11-10 12:40:52.641
  72. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  73. 2023-11-10 12:40:52.641
  74. | raise app_exc
  75. 2023-11-10 12:40:52.641
  76. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  77. 2023-11-10 12:40:52.641
  78. | ^^^^^^^^^^^^^^^^^^^^^^^^
  79. 2023-11-10 12:40:52.641
  80. | return await call_next(request)
  81. 2023-11-10 12:40:52.641
  82. | File "/code/src/middlewares.py", line 53, in dispatch
  83. 2023-11-10 12:40:52.641
  84. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  85. 2023-11-10 12:40:52.641
  86. | response = await self.dispatch_func(request, call_next)
  87. 2023-11-10 12:40:52.641
  88. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  89. 2023-11-10 12:40:52.641
  90. | Traceback (most recent call last):
  91. 2023-11-10 12:40:52.641
  92. |
  93. 2023-11-10 12:40:52.641
  94. | During handling of the above exception, another exception occurred:
  95. 2023-11-10 12:40:52.641
  96. |
  97. 2023-11-10 12:40:52.641
  98. | anyio.EndOfStream
  99. 2023-11-10 12:40:52.641
  100. | raise EndOfStream
  101. 2023-11-10 12:40:52.641
  102. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
  103. 2023-11-10 12:40:52.641
  104. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  105. 2023-11-10 12:40:52.641
  106. | message = await recv_stream.receive()
  107. 2023-11-10 12:40:52.641
  108. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
  109. 2023-11-10 12:40:52.641
  110. | Traceback (most recent call last):
  111. 2023-11-10 12:40:52.641
  112. |
  113. 2023-11-10 12:40:52.641
  114. | During handling of the above exception, another exception occurred:
  115. 2023-11-10 12:40:52.641
  116. |
  117. 2023-11-10 12:40:52.641
  118. | anyio.WouldBlock
  119. 2023-11-10 12:40:52.641
  120. | raise WouldBlock
  121. 2023-11-10 12:40:52.641
  122. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
  123. 2023-11-10 12:40:52.641
  124. | ^^^^^^^^^^^^^^^^^^^^^
  125. 2023-11-10 12:40:52.641
  126. | return self.receive_nowait()
  127. 2023-11-10 12:40:52.641
  128. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
  129. 2023-11-10 12:40:52.641
  130. | Traceback (most recent call last):
  131. 2023-11-10 12:40:52.641
  132. +-+---------------- 1 ----------------
  133. 2023-11-10 12:40:52.641
  134. | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  135. 2023-11-10 12:40:52.641
  136. | raise BaseExceptionGroup(
  137. 2023-11-10 12:40:52.641
  138. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 664, in __aexit__
  139. 2023-11-10 12:40:52.641
  140. | async with anyio.create_task_group() as task_group:
  141. 2023-11-10 12:40:52.641
  142. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
  143. 2023-11-10 12:40:52.641
  144. | await self.app(scope, receive, send)
  145. 2023-11-10 12:40:52.641
  146. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
  147. 2023-11-10 12:40:52.641
  148. | await self.simple_response(scope, receive, send, request_headers=headers)
  149. 2023-11-10 12:40:52.641
  150. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
  151. 2023-11-10 12:40:52.641
  152. | await self.app(scope, receive, _send)
  153. 2023-11-10 12:40:52.641
  154. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
  155. 2023-11-10 12:40:52.641
  156. | raise exc
  157. 2023-11-10 12:40:52.641
  158. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
  159. 2023-11-10 12:40:52.641
  160. | await self.middleware_stack(scope, receive, send)
  161. 2023-11-10 12:40:52.641
  162. | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
  163. 2023-11-10 12:40:52.641
  164. | await super().__call__(scope, receive, send)
  165. 2023-11-10 12:40:52.641
  166. | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
  167. 2023-11-10 12:40:52.641
  168. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  169. 2023-11-10 12:40:52.641
  170. | return await self.app(scope, receive, send)
  171. 2023-11-10 12:40:52.641
  172. | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  173. 2023-11-10 12:40:52.641
  174. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  175. 2023-11-10 12:40:52.641
  176. | result = await app( # type: ignore[func-returns-value]
  177. 2023-11-10 12:40:52.641
  178. | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
  179. 2023-11-10 12:40:52.641
  180. + Exception Group Traceback (most recent call last):
  181. 2023-11-10 12:40:52.641
  182.  
  183. 2023-11-10 12:40:52.641
  184. During handling of the above exception, another exception occurred:
  185. 2023-11-10 12:40:52.641
  186.  
  187. 2023-11-10 12:40:52.641
  188. services.otp.OtpRateLimitError: OTP can be generated every 3.0 minutes.
  189. 2023-11-10 12:40:52.641
  190. raise OtpRateLimitError(user_uuid=user_uuid)
  191. 2023-11-10 12:40:52.641
  192. File "/code/src/services/twilio.py", line 101, in send_otp
  193. 2023-11-10 12:40:52.641
  194. await twilio_service.send_otp(to=new_phone_data.phone, user_uuid=user.uuid)
  195. 2023-11-10 12:40:52.641
  196. File "/code/src/routers/users.py", line 175, in change_phone
  197. 2023-11-10 12:40:52.641
  198. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  199. 2023-11-10 12:40:52.641
  200. return await dependant.call(**values)
  201. 2023-11-10 12:40:52.641
  202. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  203. 2023-11-10 12:40:52.641
  204. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  205. 2023-11-10 12:40:52.641
  206. raw_response = await run_endpoint_function(
  207. 2023-11-10 12:40:52.641
  208. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  209. 2023-11-10 12:40:52.641
  210. ^^^^^^^^^^^^^^^^^^^
  211. 2023-11-10 12:40:52.641
  212. response = await func(request)
  213. 2023-11-10 12:40:52.641
  214. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  215. 2023-11-10 12:40:52.641
  216. await self.app(scope, receive, send)
  217. 2023-11-10 12:40:52.641
  218. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  219. 2023-11-10 12:40:52.641
  220. await route.handle(scope, receive, send)
  221. 2023-11-10 12:40:52.641
  222. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  223. 2023-11-10 12:40:52.641
  224. await self.app(scope, receive, send)
  225. 2023-11-10 12:40:52.641
  226. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  227. 2023-11-10 12:40:52.641
  228. raise e
  229. 2023-11-10 12:40:52.641
  230. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  231. 2023-11-10 12:40:52.641
  232. await self.app(scope, receive, sender)
  233. 2023-11-10 12:40:52.641
  234. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  235. 2023-11-10 12:40:52.641
  236. raise exc
  237. 2023-11-10 12:40:52.641
  238. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  239. 2023-11-10 12:40:52.641
  240. await self.app(scope, receive_or_disconnect, send_no_error)
  241. 2023-11-10 12:40:52.641
  242. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  243. 2023-11-10 12:40:52.641
  244. raise app_exc
  245. 2023-11-10 12:40:52.641
  246. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  247. 2023-11-10 12:40:52.641
  248. ^^^^^^^^^^^^^^^^^^^^^^^^
  249. 2023-11-10 12:40:52.641
  250. return await call_next(request)
  251. 2023-11-10 12:40:52.641
  252. File "/code/src/middlewares.py", line 53, in dispatch
  253. 2023-11-10 12:40:52.641
  254. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  255. 2023-11-10 12:40:52.641
  256. response = await self.dispatch_func(request, call_next)
  257. 2023-11-10 12:40:52.641
  258. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  259. 2023-11-10 12:40:52.641
  260. Traceback (most recent call last):
  261. 2023-11-10 12:40:52.640
  262. ERROR: Exception in ASGI application
  263. 2023-11-10 12:40:52.635
  264. INFO: 10.40.96.229:0 - "PATCH /user/me/phone HTTP/1.1" 500 Internal Server Error
  265. 2023-11-10 12:40:52.517
  266. INFO: 10.40.96.229:0 - "OPTIONS /user/me/phone HTTP/1.1" 200 OK
  267. 2023-11-10 12:40:36.584
  268. +------------------------------------
  269. 2023-11-10 12:40:36.584
  270. | services.otp.OtpRateLimitError: OTP can be generated every 3.0 minutes.
  271. 2023-11-10 12:40:36.584
  272. | raise OtpRateLimitError(user_uuid=user_uuid)
  273. 2023-11-10 12:40:36.584
  274. | File "/code/src/services/twilio.py", line 101, in send_otp
  275. 2023-11-10 12:40:36.584
  276. | await twilio_service.send_otp(to=new_phone_data.phone, user_uuid=user.uuid)
  277. 2023-11-10 12:40:36.584
  278. | File "/code/src/routers/users.py", line 175, in change_phone
  279. 2023-11-10 12:40:36.584
  280. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  281. 2023-11-10 12:40:36.584
  282. | return await dependant.call(**values)
  283. 2023-11-10 12:40:36.584
  284. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  285. 2023-11-10 12:40:36.584
  286. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  287. 2023-11-10 12:40:36.584
  288. | raw_response = await run_endpoint_function(
  289. 2023-11-10 12:40:36.584
  290. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  291. 2023-11-10 12:40:36.584
  292. | ^^^^^^^^^^^^^^^^^^^
  293. 2023-11-10 12:40:36.584
  294. | response = await func(request)
  295. 2023-11-10 12:40:36.584
  296. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  297. 2023-11-10 12:40:36.584
  298. | await self.app(scope, receive, send)
  299. 2023-11-10 12:40:36.584
  300. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  301. 2023-11-10 12:40:36.584
  302. | await route.handle(scope, receive, send)
  303. 2023-11-10 12:40:36.584
  304. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  305. 2023-11-10 12:40:36.584
  306. | await self.app(scope, receive, send)
  307. 2023-11-10 12:40:36.584
  308. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  309. 2023-11-10 12:40:36.584
  310. | raise e
  311. 2023-11-10 12:40:36.584
  312. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  313. 2023-11-10 12:40:36.584
  314. | await self.app(scope, receive, sender)
  315. 2023-11-10 12:40:36.584
  316. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  317. 2023-11-10 12:40:36.584
  318. | raise exc
  319. 2023-11-10 12:40:36.584
  320. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  321. 2023-11-10 12:40:36.584
  322. | await self.app(scope, receive_or_disconnect, send_no_error)
  323. 2023-11-10 12:40:36.584
  324. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  325. 2023-11-10 12:40:36.584
  326. | raise app_exc
  327. 2023-11-10 12:40:36.584
  328. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  329. 2023-11-10 12:40:36.584
  330. | ^^^^^^^^^^^^^^^^^^^^^^^^
  331. 2023-11-10 12:40:36.584
  332. | return await call_next(request)
  333. 2023-11-10 12:40:36.584
  334. | File "/code/src/middlewares.py", line 53, in dispatch
  335. 2023-11-10 12:40:36.584
  336. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  337. 2023-11-10 12:40:36.584
  338. | response = await self.dispatch_func(request, call_next)
  339. 2023-11-10 12:40:36.584
  340. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  341. 2023-11-10 12:40:36.584
  342. | Traceback (most recent call last):
  343. 2023-11-10 12:40:36.584
  344. |
  345. 2023-11-10 12:40:36.584
  346. | During handling of the above exception, another exception occurred:
  347. 2023-11-10 12:40:36.584
  348. |
  349. 2023-11-10 12:40:36.584
  350. | anyio.EndOfStream
  351. 2023-11-10 12:40:36.584
  352. | raise EndOfStream
  353. 2023-11-10 12:40:36.584
  354. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
  355. 2023-11-10 12:40:36.584
  356. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  357. 2023-11-10 12:40:36.584
  358. | message = await recv_stream.receive()
  359. 2023-11-10 12:40:36.584
  360. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
  361. 2023-11-10 12:40:36.584
  362. | Traceback (most recent call last):
  363. 2023-11-10 12:40:36.584
  364. |
  365. 2023-11-10 12:40:36.584
  366. | During handling of the above exception, another exception occurred:
  367. 2023-11-10 12:40:36.584
  368. |
  369. 2023-11-10 12:40:36.584
  370. | anyio.WouldBlock
  371. 2023-11-10 12:40:36.584
  372. | raise WouldBlock
  373. 2023-11-10 12:40:36.584
  374. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
  375. 2023-11-10 12:40:36.584
  376. | ^^^^^^^^^^^^^^^^^^^^^
  377. 2023-11-10 12:40:36.584
  378. | return self.receive_nowait()
  379. 2023-11-10 12:40:36.584
  380. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
  381. 2023-11-10 12:40:36.584
  382. | Traceback (most recent call last):
  383. 2023-11-10 12:40:36.584
  384. +-+---------------- 1 ----------------
  385. 2023-11-10 12:40:36.584
  386. | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  387. 2023-11-10 12:40:36.584
  388. | raise BaseExceptionGroup(
  389. 2023-11-10 12:40:36.584
  390. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 664, in __aexit__
  391. 2023-11-10 12:40:36.584
  392. | async with anyio.create_task_group() as task_group:
  393. 2023-11-10 12:40:36.584
  394. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
  395. 2023-11-10 12:40:36.584
  396. | await self.app(scope, receive, send)
  397. 2023-11-10 12:40:36.584
  398. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
  399. 2023-11-10 12:40:36.584
  400. | await self.simple_response(scope, receive, send, request_headers=headers)
  401. 2023-11-10 12:40:36.584
  402. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
  403. 2023-11-10 12:40:36.584
  404. | await self.app(scope, receive, _send)
  405. 2023-11-10 12:40:36.584
  406. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
  407. 2023-11-10 12:40:36.584
  408. | raise exc
  409. 2023-11-10 12:40:36.584
  410. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
  411. 2023-11-10 12:40:36.584
  412. | await self.middleware_stack(scope, receive, send)
  413. 2023-11-10 12:40:36.584
  414. | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
  415. 2023-11-10 12:40:36.584
  416. | await super().__call__(scope, receive, send)
  417. 2023-11-10 12:40:36.584
  418. | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
  419. 2023-11-10 12:40:36.584
  420. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  421. 2023-11-10 12:40:36.584
  422. | return await self.app(scope, receive, send)
  423. 2023-11-10 12:40:36.584
  424. | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  425. 2023-11-10 12:40:36.584
  426. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  427. 2023-11-10 12:40:36.584
  428. | result = await app( # type: ignore[func-returns-value]
  429. 2023-11-10 12:40:36.584
  430. | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
  431. 2023-11-10 12:40:36.584
  432. + Exception Group Traceback (most recent call last):
  433. 2023-11-10 12:40:36.584
  434.  
  435. 2023-11-10 12:40:36.584
  436. During handling of the above exception, another exception occurred:
  437. 2023-11-10 12:40:36.584
  438.  
  439. 2023-11-10 12:40:36.584
  440. services.otp.OtpRateLimitError: OTP can be generated every 3.0 minutes.
  441. 2023-11-10 12:40:36.584
  442. raise OtpRateLimitError(user_uuid=user_uuid)
  443. 2023-11-10 12:40:36.584
  444. File "/code/src/services/twilio.py", line 101, in send_otp
  445. 2023-11-10 12:40:36.584
  446. await twilio_service.send_otp(to=new_phone_data.phone, user_uuid=user.uuid)
  447. 2023-11-10 12:40:36.584
  448. File "/code/src/routers/users.py", line 175, in change_phone
  449. 2023-11-10 12:40:36.584
  450. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  451. 2023-11-10 12:40:36.584
  452. return await dependant.call(**values)
  453. 2023-11-10 12:40:36.584
  454. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
  455. 2023-11-10 12:40:36.584
  456. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  457. 2023-11-10 12:40:36.584
  458. raw_response = await run_endpoint_function(
  459. 2023-11-10 12:40:36.584
  460. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  461. 2023-11-10 12:40:36.584
  462. ^^^^^^^^^^^^^^^^^^^
  463. 2023-11-10 12:40:36.584
  464. response = await func(request)
  465. 2023-11-10 12:40:36.584
  466. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  467. 2023-11-10 12:40:36.584
  468. await self.app(scope, receive, send)
  469. 2023-11-10 12:40:36.584
  470. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  471. 2023-11-10 12:40:36.584
  472. await route.handle(scope, receive, send)
  473. 2023-11-10 12:40:36.584
  474. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  475. 2023-11-10 12:40:36.584
  476. await self.app(scope, receive, send)
  477. 2023-11-10 12:40:36.584
  478. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  479. 2023-11-10 12:40:36.584
  480. raise e
  481. 2023-11-10 12:40:36.584
  482. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  483. 2023-11-10 12:40:36.584
  484. await self.app(scope, receive, sender)
  485. 2023-11-10 12:40:36.584
  486. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  487. 2023-11-10 12:40:36.584
  488. raise exc
  489. 2023-11-10 12:40:36.584
  490. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  491. 2023-11-10 12:40:36.584
  492. await self.app(scope, receive_or_disconnect, send_no_error)
  493. 2023-11-10 12:40:36.584
  494. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  495. 2023-11-10 12:40:36.584
  496. raise app_exc
  497. 2023-11-10 12:40:36.584
  498. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  499. 2023-11-10 12:40:36.584
  500. ^^^^^^^^^^^^^^^^^^^^^^^^
  501. 2023-11-10 12:40:36.584
  502. return await call_next(request)
  503. 2023-11-10 12:40:36.584
  504. File "/code/src/middlewares.py", line 53, in dispatch
  505. 2023-11-10 12:40:36.584
  506. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  507. 2023-11-10 12:40:36.584
  508. response = await self.dispatch_func(request, call_next)
  509. 2023-11-10 12:40:36.584
  510. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  511. 2023-11-10 12:40:36.584
  512. Traceback (most recent call last):
  513. 2023-11-10 12:40:36.584
  514. ERROR: Exception in ASGI application
  515. 2023-11-10 12:40:36.505
  516. INFO: 10.40.96.229:0 - "PATCH /user/me/phone HTTP/1.1" 500 Internal Server Error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement