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