mekasu0124

Untitled

Oct 21st, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. (env) C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\server>uvicorn main:app --reload
  2. INFO: Will watch for changes in these directories: ['C:\\Users\\Mekasu\\Documents\\Projects\\Websites\\MeksTutor\\server']
  3. INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
  4. INFO: Started reloader process [14860] using StatReload
  5. C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\pydantic\_internal\_config.py:317: UserWarning: Valid config keys have changed in V2:
  6. * 'orm_mode' has been renamed to 'from_attributes'
  7. warnings.warn(message, UserWarning)
  8. INFO: Started server process [16764]
  9. INFO: Waiting for application startup.
  10. INFO: Application startup complete.
  11. INFO: 127.0.0.1:62583 - "OPTIONS /create_account/ HTTP/1.1" 200 OK
  12. first_name='John' last_name='Doe' email_address='[email protected]' phone_number='(112) 334-4444' password='SomePassword123!' date_of_birth='12/12/1212' grade=7 isChild=True
  13. INFO: 127.0.0.1:62583 - "POST /create_account/ HTTP/1.1" 500 Internal Server Error
  14. ERROR: Exception in ASGI application
  15. Traceback (most recent call last):
  16. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
  17. result = await app( # type: ignore[func-returns-value]
  18. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in __call__
  20. return await self.app(scope, receive, send)
  21. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  22. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\fastapi\applications.py", line 1115, in __call__
  23. await super().__call__(scope, receive, send)
  24. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\applications.py", line 122, in __call__
  25. await self.middleware_stack(scope, receive, send)
  26. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\errors.py", line 184, in __call__
  27. raise exc
  28. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\errors.py", line 162, in __call__
  29. await self.app(scope, receive, _send)
  30. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\cors.py", line 91, in __call__
  31. await self.simple_response(scope, receive, send, request_headers=headers)
  32. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\cors.py", line 146, in simple_response
  33. await self.app(scope, receive, send)
  34. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
  35. raise exc
  36. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
  37. await self.app(scope, receive, sender)
  38. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in __call__
  39. raise e
  40. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in __call__
  41. await self.app(scope, receive, send)
  42. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\routing.py", line 718, in __call__
  43. await route.handle(scope, receive, send)
  44. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\routing.py", line 276, in handle
  45. await self.app(scope, receive, send)
  46. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\starlette\routing.py", line 66, in app
  47. response = await func(request)
  48. ^^^^^^^^^^^^^^^^^^^
  49. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\fastapi\routing.py", line 292, in app
  50. content = await serialize_response(
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^
  52. File "C:\Users\Mekasu\Documents\Projects\Websites\MeksTutor\env\Lib\site-packages\fastapi\routing.py", line 155, in serialize_response
  53. raise ResponseValidationError(
  54. fastapi.exceptions.ResponseValidationError: 6 validation errors:
  55. {'type': 'missing', 'loc': ('response', 'firstName'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  56. {'type': 'missing', 'loc': ('response', 'lastName'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  57. {'type': 'missing', 'loc': ('response', 'emailAddress'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  58. {'type': 'missing', 'loc': ('response', 'phoneNumber'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  59. {'type': 'missing', 'loc': ('response', 'dateOfBirth'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  60. {'type': 'missing', 'loc': ('response', 'id'), 'msg': 'Field required', 'input': UserBase(first_name='John', last_name='Doe', email_address='[email protected]', phone_number='(112) 334-4444', password='SomePassword123!', date_of_birth='12/12/1212', grade=7, isChild=True), 'url': 'https://errors.pydantic.dev/2.4/v/missing'}
  61.  
  62. INFO: 127.0.0.1:62588 - "GET /docs HTTP/1.1" 200 OK
  63. INFO: 127.0.0.1:62588 - "GET /openapi.json HTTP/1.1" 200 OK
Advertisement
Add Comment
Please, Sign In to add comment