Advertisement
Mochinov

Untitled

Dec 19th, 2023
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.90 KB | None | 0 0
  1.  
  2. 2023-12-19 17:27:37.532
  3. INFO: 10.40.96.229:0 - "OPTIONS /company/ HTTP/1.1" 200 OK
  4. 2023-12-19 17:27:37.348
  5. +------------------------------------
  6. 2023-12-19 17:27:37.348
  7. | stripe.error.InvalidRequestError: Request req_6rV7zAd54rVcfA: Invalid integer: undefined-undefined-undefined
  8. 2023-12-19 17:27:37.348
  9. | raise err
  10. 2023-12-19 17:27:37.348
  11. | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 189, in handle_error_response
  12. 2023-12-19 17:27:37.348
  13. | self.handle_error_response(rbody, rcode, resp.data, rheaders)
  14. 2023-12-19 17:27:37.348
  15. | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 440, in interpret_response
  16. 2023-12-19 17:27:37.348
  17. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18. 2023-12-19 17:27:37.348
  19. | resp = self.interpret_response(rbody, rcode, rheaders)
  20. 2023-12-19 17:27:37.348
  21. | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 140, in request
  22. 2023-12-19 17:27:37.348
  23. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. 2023-12-19 17:27:37.348
  25. | response, api_key = requestor.request(method_, url_, params, headers)
  26. 2023-12-19 17:27:37.348
  27. | File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/abstract/api_resource.py", line 152, in _static_request
  28. 2023-12-19 17:27:37.348
  29. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  30. 2023-12-19 17:27:37.348
  31. | return cast("Account", cls._static_request("post", url, params=params))
  32. 2023-12-19 17:27:37.348
  33. | File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/account.py", line 3775, in modify
  34. 2023-12-19 17:27:37.348
  35. | stripe_service.stripe.Account.modify(
  36. 2023-12-19 17:27:37.348
  37. | File "/code/src/routers/kyc_structure.py", line 223, in send_kyc_company_structure_to_stripe
  38. 2023-12-19 17:27:37.348
  39. | ^^^^^^^^^^^^^^^^^^^^^^^^
  40. 2023-12-19 17:27:37.348
  41. | result = context.run(func, *args)
  42. 2023-12-19 17:27:37.348
  43. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 823, in run
  44. 2023-12-19 17:27:37.348
  45. | ^^^^^^^^^^^^
  46. 2023-12-19 17:27:37.348
  47. | return await future
  48. 2023-12-19 17:27:37.348
  49. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2103, in run_sync_in_worker_thread
  50. 2023-12-19 17:27:37.348
  51. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. 2023-12-19 17:27:37.348
  53. | return await get_async_backend().run_sync_in_worker_thread(
  54. 2023-12-19 17:27:37.348
  55. | File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 49, in run_sync
  56. 2023-12-19 17:27:37.348
  57. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  58. 2023-12-19 17:27:37.348
  59. | return await anyio.to_thread.run_sync(func, *args)
  60. 2023-12-19 17:27:37.348
  61. | File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  62. 2023-12-19 17:27:37.348
  63. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  64. 2023-12-19 17:27:37.348
  65. | return await run_in_threadpool(dependant.call, **values)
  66. 2023-12-19 17:27:37.348
  67. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
  68. 2023-12-19 17:27:37.348
  69. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  70. 2023-12-19 17:27:37.348
  71. | raw_response = await run_endpoint_function(
  72. 2023-12-19 17:27:37.348
  73. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  74. 2023-12-19 17:27:37.348
  75. | ^^^^^^^^^^^^^^^^^^^
  76. 2023-12-19 17:27:37.348
  77. | response = await func(request)
  78. 2023-12-19 17:27:37.348
  79. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  80. 2023-12-19 17:27:37.348
  81. | await self.app(scope, receive, send)
  82. 2023-12-19 17:27:37.348
  83. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  84. 2023-12-19 17:27:37.348
  85. | await route.handle(scope, receive, send)
  86. 2023-12-19 17:27:37.348
  87. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  88. 2023-12-19 17:27:37.348
  89. | await self.app(scope, receive, send)
  90. 2023-12-19 17:27:37.348
  91. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  92. 2023-12-19 17:27:37.348
  93. | raise e
  94. 2023-12-19 17:27:37.348
  95. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  96. 2023-12-19 17:27:37.348
  97. | await self.app(scope, receive, sender)
  98. 2023-12-19 17:27:37.348
  99. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  100. 2023-12-19 17:27:37.348
  101. | raise exc
  102. 2023-12-19 17:27:37.348
  103. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  104. 2023-12-19 17:27:37.348
  105. | await self.app(scope, receive_or_disconnect, send_no_error)
  106. 2023-12-19 17:27:37.348
  107. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  108. 2023-12-19 17:27:37.348
  109. | raise app_exc
  110. 2023-12-19 17:27:37.348
  111. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  112. 2023-12-19 17:27:37.348
  113. | ^^^^^^^^^^^^^^^^^^^^^^^^
  114. 2023-12-19 17:27:37.348
  115. | return await call_next(request)
  116. 2023-12-19 17:27:37.348
  117. | File "/code/src/middlewares.py", line 53, in dispatch
  118. 2023-12-19 17:27:37.348
  119. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  120. 2023-12-19 17:27:37.348
  121. | response = await self.dispatch_func(request, call_next)
  122. 2023-12-19 17:27:37.348
  123. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  124. 2023-12-19 17:27:37.348
  125. | Traceback (most recent call last):
  126. 2023-12-19 17:27:37.348
  127. |
  128. 2023-12-19 17:27:37.348
  129. | During handling of the above exception, another exception occurred:
  130. 2023-12-19 17:27:37.348
  131. |
  132. 2023-12-19 17:27:37.348
  133. | anyio.EndOfStream
  134. 2023-12-19 17:27:37.348
  135. | raise EndOfStream
  136. 2023-12-19 17:27:37.348
  137. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
  138. 2023-12-19 17:27:37.348
  139. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  140. 2023-12-19 17:27:37.348
  141. | message = await recv_stream.receive()
  142. 2023-12-19 17:27:37.348
  143. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
  144. 2023-12-19 17:27:37.348
  145. | Traceback (most recent call last):
  146. 2023-12-19 17:27:37.348
  147. |
  148. 2023-12-19 17:27:37.348
  149. | During handling of the above exception, another exception occurred:
  150. 2023-12-19 17:27:37.348
  151. |
  152. 2023-12-19 17:27:37.348
  153. | anyio.WouldBlock
  154. 2023-12-19 17:27:37.348
  155. | raise WouldBlock
  156. 2023-12-19 17:27:37.348
  157. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
  158. 2023-12-19 17:27:37.348
  159. | ^^^^^^^^^^^^^^^^^^^^^
  160. 2023-12-19 17:27:37.348
  161. | return self.receive_nowait()
  162. 2023-12-19 17:27:37.348
  163. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
  164. 2023-12-19 17:27:37.348
  165. | Traceback (most recent call last):
  166. 2023-12-19 17:27:37.348
  167. +-+---------------- 1 ----------------
  168. 2023-12-19 17:27:37.348
  169. | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  170. 2023-12-19 17:27:37.348
  171. | raise BaseExceptionGroup(
  172. 2023-12-19 17:27:37.348
  173. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 658, in __aexit__
  174. 2023-12-19 17:27:37.348
  175. | async with anyio.create_task_group() as task_group:
  176. 2023-12-19 17:27:37.348
  177. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
  178. 2023-12-19 17:27:37.348
  179. | await self.app(scope, receive, send)
  180. 2023-12-19 17:27:37.348
  181. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
  182. 2023-12-19 17:27:37.348
  183. | await self.simple_response(scope, receive, send, request_headers=headers)
  184. 2023-12-19 17:27:37.348
  185. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
  186. 2023-12-19 17:27:37.348
  187. | await self.app(scope, receive, _send)
  188. 2023-12-19 17:27:37.348
  189. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
  190. 2023-12-19 17:27:37.348
  191. | raise exc
  192. 2023-12-19 17:27:37.348
  193. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
  194. 2023-12-19 17:27:37.348
  195. | await self.middleware_stack(scope, receive, send)
  196. 2023-12-19 17:27:37.348
  197. | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
  198. 2023-12-19 17:27:37.348
  199. | await super().__call__(scope, receive, send)
  200. 2023-12-19 17:27:37.348
  201. | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
  202. 2023-12-19 17:27:37.348
  203. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  204. 2023-12-19 17:27:37.348
  205. | return await self.app(scope, receive, send)
  206. 2023-12-19 17:27:37.348
  207. | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  208. 2023-12-19 17:27:37.348
  209. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  210. 2023-12-19 17:27:37.348
  211. | result = await app( # type: ignore[func-returns-value]
  212. 2023-12-19 17:27:37.348
  213. | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
  214. 2023-12-19 17:27:37.348
  215. + Exception Group Traceback (most recent call last):
  216. 2023-12-19 17:27:37.348
  217.  
  218. 2023-12-19 17:27:37.348
  219. During handling of the above exception, another exception occurred:
  220. 2023-12-19 17:27:37.347
  221.  
  222. 2023-12-19 17:27:37.347
  223. stripe.error.InvalidRequestError: Request req_6rV7zAd54rVcfA: Invalid integer: undefined-undefined-undefined
  224. 2023-12-19 17:27:37.347
  225. raise err
  226. 2023-12-19 17:27:37.347
  227. File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 189, in handle_error_response
  228. 2023-12-19 17:27:37.347
  229. self.handle_error_response(rbody, rcode, resp.data, rheaders)
  230. 2023-12-19 17:27:37.347
  231. File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 440, in interpret_response
  232. 2023-12-19 17:27:37.347
  233. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  234. 2023-12-19 17:27:37.347
  235. resp = self.interpret_response(rbody, rcode, rheaders)
  236. 2023-12-19 17:27:37.347
  237. File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 140, in request
  238. 2023-12-19 17:27:37.347
  239. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  240. 2023-12-19 17:27:37.347
  241. response, api_key = requestor.request(method_, url_, params, headers)
  242. 2023-12-19 17:27:37.347
  243. File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/abstract/api_resource.py", line 152, in _static_request
  244. 2023-12-19 17:27:37.347
  245. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  246. 2023-12-19 17:27:37.347
  247. return cast("Account", cls._static_request("post", url, params=params))
  248. 2023-12-19 17:27:37.347
  249. File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/account.py", line 3775, in modify
  250. 2023-12-19 17:27:37.347
  251. stripe_service.stripe.Account.modify(
  252. 2023-12-19 17:27:37.347
  253. File "/code/src/routers/kyc_structure.py", line 223, in send_kyc_company_structure_to_stripe
  254. 2023-12-19 17:27:37.347
  255. ^^^^^^^^^^^^^^^^^^^^^^^^
  256. 2023-12-19 17:27:37.347
  257. result = context.run(func, *args)
  258. 2023-12-19 17:27:37.347
  259. File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 823, in run
  260. 2023-12-19 17:27:37.347
  261. ^^^^^^^^^^^^
  262. 2023-12-19 17:27:37.347
  263. return await future
  264. 2023-12-19 17:27:37.347
  265. File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2103, in run_sync_in_worker_thread
  266. 2023-12-19 17:27:37.347
  267. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  268. 2023-12-19 17:27:37.347
  269. return await get_async_backend().run_sync_in_worker_thread(
  270. 2023-12-19 17:27:37.347
  271. File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 49, in run_sync
  272. 2023-12-19 17:27:37.347
  273. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  274. 2023-12-19 17:27:37.347
  275. return await anyio.to_thread.run_sync(func, *args)
  276. 2023-12-19 17:27:37.347
  277. File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  278. 2023-12-19 17:27:37.347
  279. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  280. 2023-12-19 17:27:37.347
  281. return await run_in_threadpool(dependant.call, **values)
  282. 2023-12-19 17:27:37.347
  283. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
  284. 2023-12-19 17:27:37.347
  285. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  286. 2023-12-19 17:27:37.347
  287. raw_response = await run_endpoint_function(
  288. 2023-12-19 17:27:37.347
  289. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  290. 2023-12-19 17:27:37.347
  291. ^^^^^^^^^^^^^^^^^^^
  292. 2023-12-19 17:27:37.347
  293. response = await func(request)
  294. 2023-12-19 17:27:37.347
  295. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  296. 2023-12-19 17:27:37.347
  297. await self.app(scope, receive, send)
  298. 2023-12-19 17:27:37.347
  299. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  300. 2023-12-19 17:27:37.347
  301. await route.handle(scope, receive, send)
  302. 2023-12-19 17:27:37.347
  303. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  304. 2023-12-19 17:27:37.347
  305. await self.app(scope, receive, send)
  306. 2023-12-19 17:27:37.347
  307. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  308. 2023-12-19 17:27:37.347
  309. raise e
  310. 2023-12-19 17:27:37.347
  311. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  312. 2023-12-19 17:27:37.347
  313. await self.app(scope, receive, sender)
  314. 2023-12-19 17:27:37.347
  315. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  316. 2023-12-19 17:27:37.347
  317. raise exc
  318. 2023-12-19 17:27:37.347
  319. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  320. 2023-12-19 17:27:37.347
  321. await self.app(scope, receive_or_disconnect, send_no_error)
  322. 2023-12-19 17:27:37.347
  323. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  324. 2023-12-19 17:27:37.347
  325. raise app_exc
  326. 2023-12-19 17:27:37.347
  327. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  328. 2023-12-19 17:27:37.347
  329. ^^^^^^^^^^^^^^^^^^^^^^^^
  330. 2023-12-19 17:27:37.347
  331. return await call_next(request)
  332. 2023-12-19 17:27:37.347
  333. File "/code/src/middlewares.py", line 53, in dispatch
  334. 2023-12-19 17:27:37.347
  335. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  336. 2023-12-19 17:27:37.347
  337. response = await self.dispatch_func(request, call_next)
  338. 2023-12-19 17:27:37.347
  339. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  340. 2023-12-19 17:27:37.347
  341. Traceback (most recent call last):
  342. 2023-12-19 17:27:37.347
  343. ERROR: Exception in ASGI application
  344. 2023-12-19 17:27:37.343
  345. INFO: 10.40.96.229:0 - "POST /company/kyc HTTP/1.1" 500 Internal Server Error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement