a1nsworth

Untitled

Sep 18th, 2024
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. ERROR: Exception in ASGI application
  2. Traceback (most recent call last):
  3. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
  4. result = await app( # type: ignore[func-returns-value]
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
  7. return await self.app(scope, receive, send)
  8. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  9. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
  10. await super().__call__(scope, receive, send)
  11. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/applications.py", line 113, in __call__
  12. await self.middleware_stack(scope, receive, send)
  13. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
  14. raise exc
  15. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
  16. await self.app(scope, receive, _send)
  17. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/starlette.py", line 57, in __call__
  18. return await self.app(scope, receive, send)
  19. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 93, in __call__
  21. await self.simple_response(scope, receive, send, request_headers=headers)
  22. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 144, in simple_response
  23. await self.app(scope, receive, send)
  24. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  25. await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  26. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
  27. raise exc
  28. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
  29. await app(scope, receive, sender)
  30. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 715, in __call__
  31. await self.middleware_stack(scope, receive, send)
  32. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 735, in app
  33. await route.handle(scope, receive, send)
  34. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
  35. await self.app(scope, receive, send)
  36. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
  37. await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  38. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
  39. raise exc
  40. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
  41. await app(scope, receive, sender)
  42. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
  43. response = await f(request)
  44. ^^^^^^^^^^^^^^^^
  45. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
  46. raw_response = await run_endpoint_function(
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  49. return await dependant.call(**values)
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/base.py", line 192, in auto_injected_func
  52. return await func(*args, **kwargs, **solved)
  53. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54. File "/home/a1nsworth/Study/python/specification-subject/.venv/lib/python3.12/site-packages/dishka/integrations/base.py", line 192, in auto_injected_func
  55. return await func(*args, **kwargs, **solved)
  56. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57. File "/home/a1nsworth/Study/python/specification-subject/src/routes/routes.py", line 384, in create_credit_account
  58. a = CreditAccount(**schema.model_dump())
  59. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  60. TypeError: __init__() got an unexpected keyword argument 'loan_start_date'
  61.  
Advertisement
Add Comment
Please, Sign In to add comment