Advertisement
Mochinov

Untitled

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