Title: ERROR: Exception in ASGI application for webapps -> fastapi -> uvicorn · Issue #9 · patrickloeber/python-fun · GitHub
Open Graph Title: ERROR: Exception in ASGI application for webapps -> fastapi -> uvicorn · Issue #9 · patrickloeber/python-fun
X Title: ERROR: Exception in ASGI application for webapps -> fastapi -> uvicorn · Issue #9 · patrickloeber/python-fun
Description: ➜ fastapi git:(master) ✗ uvicorn app:app --reload INFO: Will watch for changes in these directories: ['~/....../python-fun/webapps/fastapi'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader pro...
Open Graph Description: ➜ fastapi git:(master) ✗ uvicorn app:app --reload INFO: Will watch for changes in these directories: ['~/....../python-fun/webapps/fastapi'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CT...
X Description: ➜ fastapi git:(master) ✗ uvicorn app:app --reload INFO: Will watch for changes in these directories: ['~/....../python-fun/webapps/fastapi'] INFO: Uvicorn running on http://127.0.0.1:8000 (...
Opengraph URL: https://github.com/patrickloeber/python-fun/issues/9
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR: Exception in ASGI application for webapps -\u003e fastapi -\u003e uvicorn","articleBody":"\r\n```console\r\n➜ fastapi git:(master) ✗ uvicorn app:app --reload\r\nINFO: Will watch for changes in these directories: ['~/....../python-fun/webapps/fastapi']\r\nINFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)\r\nINFO: Started reloader process [2387967] using watchgod\r\nINFO: Started server process [2387969]\r\nINFO: Waiting for application startup.\r\nINFO: Application startup complete.\r\nINFO: 127.0.0.1:58440 - \"GET / HTTP/1.1\" 500 Internal Server Error\r\nERROR: Exception in ASGI application\r\nTraceback (most recent call last):\r\n File \"~/.local/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py\", line 372, in run_asgi\r\n result = await app(self.scope, self.receive, self.send)\r\n File \"~/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py\", line 75, in __call__\r\n return await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/applications.py\", line 259, in __call__\r\n await super().__call__(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/applications.py\", line 119, in __call__\r\n await self.middleware_stack(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/middleware/errors.py\", line 181, in __call__\r\n raise exc\r\n File \"~/.local/lib/python3.8/site-packages/starlette/middleware/errors.py\", line 159, in __call__\r\n await self.app(scope, receive, _send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/exceptions.py\", line 87, in __call__\r\n raise exc\r\n File \"~/.local/lib/python3.8/site-packages/starlette/exceptions.py\", line 76, in __call__\r\n await self.app(scope, receive, sender)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py\", line 21, in __call__\r\n raise e\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\r\n await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 659, in __call__\r\n await route.handle(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 259, in handle\r\n await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 61, in app\r\n response = await func(request)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/routing.py\", line 216, in app\r\n solved_result = await solve_dependencies(\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/dependencies/utils.py\", line 465, in solve_dependencies\r\n response = response or Response(\r\n File \"~/.local/lib/python3.8/site-packages/starlette/responses.py\", line 50, in __init__\r\n self.init_headers(headers)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/responses.py\", line 77, in init_headers\r\n and not (self.status_code \u003c 200 or self.status_code in (204, 304))\r\nTypeError: '\u003c' not supported between instances of 'NoneType' and 'int'\r\nINFO: 127.0.0.1:58442 - \"GET /favicon.ico HTTP/1.1\" 404 Not Found\r\nINFO: 127.0.0.1:58444 - \"GET / HTTP/1.1\" 500 Internal Server Error\r\nERROR: Exception in ASGI application\r\nTraceback (most recent call last):\r\n File \"~/.local/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py\", line 372, in run_asgi\r\n result = await app(self.scope, self.receive, self.send)\r\n File \"~/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py\", line 75, in __call__\r\n return await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/applications.py\", line 259, in __call__\r\n await super().__call__(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/applications.py\", line 119, in __call__\r\n await self.middleware_stack(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/middleware/errors.py\", line 181, in __call__\r\n raise exc\r\n File \"~/.local/lib/python3.8/site-packages/starlette/middleware/errors.py\", line 159, in __call__\r\n await self.app(scope, receive, _send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/exceptions.py\", line 87, in __call__\r\n raise exc\r\n File \"~/.local/lib/python3.8/site-packages/starlette/exceptions.py\", line 76, in __call__\r\n await self.app(scope, receive, sender)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py\", line 21, in __call__\r\n raise e\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\r\n await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 659, in __call__\r\n await route.handle(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 259, in handle\r\n await self.app(scope, receive, send)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/routing.py\", line 61, in app\r\n response = await func(request)\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/routing.py\", line 216, in app\r\n solved_result = await solve_dependencies(\r\n File \"~/.local/lib/python3.8/site-packages/fastapi/dependencies/utils.py\", line 465, in solve_dependencies\r\n response = response or Response(\r\n File \"~/.local/lib/python3.8/site-packages/starlette/responses.py\", line 50, in __init__\r\n self.init_headers(headers)\r\n File \"~/.local/lib/python3.8/site-packages/starlette/responses.py\", line 77, in init_headers\r\n and not (self.status_code \u003c 200 or self.status_code in (204, 304))\r\nTypeError: '\u003c' not supported between instances of 'NoneType' and 'int'\r\n^CINFO: Shutting down\r\nINFO: Waiting for application shutdown.\r\nINFO: Application shutdown complete.\r\nINFO: Finished server process [2387969]\r\nINFO: Stopping reloader process [2387967]\r\n```","author":{"url":"https://github.com/jiapei100","@type":"Person","name":"jiapei100"},"datePublished":"2022-02-21T07:39:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9/python-fun/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9916366-e030-e5cf-de4b-4024eb5800ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E07A:202ADC:1483BB:1B7CE4:6A5A68F8 |
| html-safe-nonce | 6f15fb88b7741930dd22d47b30a94ae8d01a64d3d34f18c4f90c9983300a584b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDdBOjIwMkFEQzoxNDgzQkI6MUI3Q0U0OjZBNUE2OEY4IiwidmlzaXRvcl9pZCI6IjQzMjA2OTU5MTI4MjM5NDEzNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fea74fbe7315e4d63cfed6ab9d70103cc75d75e30f7ceced1cafeba7a527180d |
| hovercard-subject-tag | issue:1145429645 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patrickloeber/python-fun/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97fd2b90eed95823fbd92ee3ae02b123d34e4f0fbbf4f82e02fd6ef60ad3b2e3/patrickloeber/python-fun/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97fd2b90eed95823fbd92ee3ae02b123d34e4f0fbbf4f82e02fd6ef60ad3b2e3/patrickloeber/python-fun/issues/9 |
| og:image:alt | ➜ fastapi git:(master) ✗ uvicorn app:app --reload INFO: Will watch for changes in these directories: ['~/....../python-fun/webapps/fastapi'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jiapei100 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| turbo-cache-control | no-preview |
| go-import | github.com/patrickloeber/python-fun git https://github.com/patrickloeber/python-fun.git |
| octolytics-dimension-user_id | 50772274 |
| octolytics-dimension-user_login | patrickloeber |
| octolytics-dimension-repository_id | 231905013 |
| octolytics-dimension-repository_nwo | patrickloeber/python-fun |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 231905013 |
| octolytics-dimension-repository_network_root_nwo | patrickloeber/python-fun |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03575fc589c0e2692de839d7ca2b3aa5b5179f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width