Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: Exception in ASGI application
- Traceback (most recent call last):
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
- result = await app( # type: ignore[func-returns-value]
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
- return await self.app(scope, receive, send)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
- await super().__call__(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/applications.py", line 113, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
- raise exc
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
- await self.app(scope, receive, _send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/starlette.py", line 57, in __call__
- return await self.app(scope, receive, send)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 93, in __call__
- await self.simple_response(scope, receive, send, request_headers=headers)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 144, in simple_response
- await self.app(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
- await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
- raise exc
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
- await app(scope, receive, sender)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 715, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 735, in app
- await route.handle(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
- await self.app(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
- await wrap_app_handling_exceptions(app, request)(scope, receive, send)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
- raise exc
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
- await app(scope, receive, sender)
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
- response = await f(request)
- ^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
- raw_response = await run_endpoint_function(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
- return await dependant.call(**values)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/base.py", line 192, in auto_injected_func
- return await func(*args, **kwargs, **solved)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/base.py", line 192, in auto_injected_func
- return await func(*args, **kwargs, **solved)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/a1nsworth/Study/python/specification-subject/src/routes/routes.py", line 384, in create_credit_account
- a = CreditAccount(**schema.model_dump())
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- TypeError: __init__() got an unexpected keyword argument 'loan_start_date'
Advertisement
Add Comment
Please, Sign In to add comment