Advertisement
Mochinov

Untitled

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