Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2023-12-19 15:28:32.158
- INFO: 10.40.96.229:0 - "OPTIONS /company/ HTTP/1.1" 200 OK
- 2023-12-19 15:28:31.959
- +------------------------------------
- 2023-12-19 15:28:31.959
- | 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).
- 2023-12-19 15:28:31.959
- | raise err
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 189, in handle_error_response
- 2023-12-19 15:28:31.959
- | self.handle_error_response(rbody, rcode, resp.data, rheaders)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 440, in interpret_response
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | resp = self.interpret_response(rbody, rcode, rheaders)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 140, in request
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | response, api_key = requestor.request(method_, url_, params, headers)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/abstract/api_resource.py", line 152, in _static_request
- 2023-12-19 15:28:31.959
- | cls._static_request(
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/account.py", line 3910, in create_external_account
- 2023-12-19 15:28:31.959
- | stripe_service.stripe.Account.create_external_account(
- 2023-12-19 15:28:31.959
- | File "/code/src/routers/kyc_structure.py", line 217, in send_kyc_company_structure_to_stripe
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | result = context.run(func, *args)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 823, in run
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await future
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2103, in run_sync_in_worker_thread
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await get_async_backend().run_sync_in_worker_thread(
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 49, in run_sync
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await anyio.to_thread.run_sync(func, *args)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await run_in_threadpool(dependant.call, **values)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | raw_response = await run_endpoint_function(
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | response = await func(request)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
- 2023-12-19 15:28:31.959
- | await route.handle(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
- 2023-12-19 15:28:31.959
- | raise e
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive, sender)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
- 2023-12-19 15:28:31.959
- | raise exc
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive_or_disconnect, send_no_error)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
- 2023-12-19 15:28:31.959
- | raise app_exc
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await call_next(request)
- 2023-12-19 15:28:31.959
- | File "/code/src/middlewares.py", line 53, in dispatch
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | response = await self.dispatch_func(request, call_next)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
- 2023-12-19 15:28:31.959
- | Traceback (most recent call last):
- 2023-12-19 15:28:31.959
- |
- 2023-12-19 15:28:31.959
- | During handling of the above exception, another exception occurred:
- 2023-12-19 15:28:31.959
- |
- 2023-12-19 15:28:31.959
- | anyio.EndOfStream
- 2023-12-19 15:28:31.959
- | raise EndOfStream
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | message = await recv_stream.receive()
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
- 2023-12-19 15:28:31.959
- | Traceback (most recent call last):
- 2023-12-19 15:28:31.959
- |
- 2023-12-19 15:28:31.959
- | During handling of the above exception, another exception occurred:
- 2023-12-19 15:28:31.959
- |
- 2023-12-19 15:28:31.959
- | anyio.WouldBlock
- 2023-12-19 15:28:31.959
- | raise WouldBlock
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return self.receive_nowait()
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
- 2023-12-19 15:28:31.959
- | Traceback (most recent call last):
- 2023-12-19 15:28:31.959
- +-+---------------- 1 ----------------
- 2023-12-19 15:28:31.959
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- 2023-12-19 15:28:31.959
- | raise BaseExceptionGroup(
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 658, in __aexit__
- 2023-12-19 15:28:31.959
- | async with anyio.create_task_group() as task_group:
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
- 2023-12-19 15:28:31.959
- | await self.simple_response(scope, receive, send, request_headers=headers)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
- 2023-12-19 15:28:31.959
- | await self.app(scope, receive, _send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
- 2023-12-19 15:28:31.959
- | raise exc
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
- 2023-12-19 15:28:31.959
- | await self.middleware_stack(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
- 2023-12-19 15:28:31.959
- | await super().__call__(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | return await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- 2023-12-19 15:28:31.959
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- | result = await app( # type: ignore[func-returns-value]
- 2023-12-19 15:28:31.959
- | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
- 2023-12-19 15:28:31.959
- + Exception Group Traceback (most recent call last):
- 2023-12-19 15:28:31.959
- 2023-12-19 15:28:31.959
- During handling of the above exception, another exception occurred:
- 2023-12-19 15:28:31.959
- 2023-12-19 15:28:31.959
- 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).
- 2023-12-19 15:28:31.959
- raise err
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 189, in handle_error_response
- 2023-12-19 15:28:31.959
- self.handle_error_response(rbody, rcode, resp.data, rheaders)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 440, in interpret_response
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- resp = self.interpret_response(rbody, rcode, rheaders)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/stripe/api_requestor.py", line 140, in request
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- response, api_key = requestor.request(method_, url_, params, headers)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/abstract/api_resource.py", line 152, in _static_request
- 2023-12-19 15:28:31.959
- cls._static_request(
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/stripe/api_resources/account.py", line 3910, in create_external_account
- 2023-12-19 15:28:31.959
- stripe_service.stripe.Account.create_external_account(
- 2023-12-19 15:28:31.959
- File "/code/src/routers/kyc_structure.py", line 217, in send_kyc_company_structure_to_stripe
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- result = context.run(func, *args)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 823, in run
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- return await future
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2103, in run_sync_in_worker_thread
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- return await get_async_backend().run_sync_in_worker_thread(
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 49, in run_sync
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- return await anyio.to_thread.run_sync(func, *args)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- return await run_in_threadpool(dependant.call, **values)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- raw_response = await run_endpoint_function(
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- response = await func(request)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
- 2023-12-19 15:28:31.959
- await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
- 2023-12-19 15:28:31.959
- await route.handle(scope, receive, send)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
- 2023-12-19 15:28:31.959
- await self.app(scope, receive, send)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
- 2023-12-19 15:28:31.959
- raise e
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
- 2023-12-19 15:28:31.959
- await self.app(scope, receive, sender)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
- 2023-12-19 15:28:31.959
- raise exc
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
- 2023-12-19 15:28:31.959
- await self.app(scope, receive_or_disconnect, send_no_error)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
- 2023-12-19 15:28:31.959
- raise app_exc
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- return await call_next(request)
- 2023-12-19 15:28:31.959
- File "/code/src/middlewares.py", line 53, in dispatch
- 2023-12-19 15:28:31.959
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2023-12-19 15:28:31.959
- response = await self.dispatch_func(request, call_next)
- 2023-12-19 15:28:31.959
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
- 2023-12-19 15:28:31.959
- Traceback (most recent call last):
- 2023-12-19 15:28:31.958
- ERROR: Exception in ASGI application
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement