Advertisement
Mochinov

Untitled

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