Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

유저의 프로필 이미지가 없을 때 버그 발생 #20

@junah201

Description

@junah201

유저의 프로필 이미지가 없을 때 FastAPI의 자체 반환값 검사에 의해서 오류가 발생합니다.

2022-10-12T17:12:38.035299+00:00 heroku[router]: at=info method=GET path="/117995910119600379975/archive" host=velog-helper.herokuapp.com request_id=5822b004-bee4-4940-8680-3e8e784d0730 fwd="116.37.178.158" dyno=web.1 connect=0ms service=9ms status=500 bytes=193 protocol=https
2022-10-12T17:12:38.037481+00:00 app[web.1]: INFO:     116.37.178.158:0 - "GET /117995910119600379975/archive HTTP/1.1" 500 Internal Server Error
2022-10-12T17:12:38.038177+00:00 app[web.1]: ERROR:    Exception in ASGI application
2022-10-12T17:12:38.038178+00:00 app[web.1]: Traceback (most recent call last):
2022-10-12T17:12:38.038180+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
2022-10-12T17:12:38.038181+00:00 app[web.1]: result = await app(self.scope, self.receive, self.send)
2022-10-12T17:12:38.038181+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
2022-10-12T17:12:38.038182+00:00 app[web.1]: return await self.app(scope, receive, send)
2022-10-12T17:12:38.038182+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/applications.py", line 269, in __call__
2022-10-12T17:12:38.038182+00:00 app[web.1]: await super().__call__(scope, receive, send)
2022-10-12T17:12:38.038183+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
2022-10-12T17:12:38.038183+00:00 app[web.1]: await self.middleware_stack(scope, receive, send)
2022-10-12T17:12:38.038183+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
2022-10-12T17:12:38.038185+00:00 app[web.1]: raise exc
2022-10-12T17:12:38.038185+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
2022-10-12T17:12:38.038185+00:00 app[web.1]: await self.app(scope, receive, _send)
2022-10-12T17:12:38.038186+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/cors.py", line 84, in __call__
2022-10-12T17:12:38.038186+00:00 app[web.1]: await self.app(scope, receive, send)
2022-10-12T17:12:38.038186+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 93, in __call__
2022-10-12T17:12:38.038186+00:00 app[web.1]: raise exc
2022-10-12T17:12:38.038187+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__
2022-10-12T17:12:38.038187+00:00 app[web.1]: await self.app(scope, receive, sender)
2022-10-12T17:12:38.038187+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
2022-10-12T17:12:38.038187+00:00 app[web.1]: raise e
2022-10-12T17:12:38.038188+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
2022-10-12T17:12:38.038188+00:00 app[web.1]: await self.app(scope, receive, send)
2022-10-12T17:12:38.038188+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 670, in __call__
2022-10-12T17:12:38.038188+00:00 app[web.1]: await route.handle(scope, receive, send)
2022-10-12T17:12:38.038188+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 266, in handle
2022-10-12T17:12:38.038189+00:00 app[web.1]: await self.app(scope, receive, send)
2022-10-12T17:12:38.038190+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 65, in app
2022-10-12T17:12:38.038190+00:00 app[web.1]: response = await func(request)
2022-10-12T17:12:38.038190+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 245, in app
2022-10-12T17:12:38.038191+00:00 app[web.1]: content = await serialize_response(
2022-10-12T17:12:38.038191+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 138, in serialize_response
2022-10-12T17:12:38.038191+00:00 app[web.1]: raise ValidationError(errors, field.type_)
2022-10-12T17:12:38.038192+00:00 app[web.1]: pydantic.error_wrappers.ValidationError: 3 validation errors for Post
2022-10-12T17:12:38.038193+00:00 app[web.1]: response -> 0 -> user_img
2022-10-12T17:12:38.038193+00:00 app[web.1]: none is not an allowed value (type=type_error.none.not_allowed)
2022-10-12T17:12:38.038193+00:00 app[web.1]: response -> 1 -> user_img
2022-10-12T17:12:38.038194+00:00 app[web.1]: none is not an allowed value (type=type_error.none.not_allowed)
2022-10-12T17:12:38.038194+00:00 app[web.1]: response -> 2 -> user_img
2022-10-12T17:12:38.038194+00:00 app[web.1]: none is not an allowed value (type=type_error.none.not_allowed)
2022-10-12T17:12:38.269591+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=velog-helper.herokuapp.com request_id=733993cb-6325-489a-9677-7b06d9f5960e fwd="116.37.178.158" dyno=web.1 connect=0ms service=1ms status=404 bytes=173 protocol=https

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙️Backend백엔드 관련 이슈입니다.🐛 Bug무언가 이상한 버그에요.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions