Error while using Uvicorn main:app --reload #11435
Unanswered
KarthikChimkode
asked this question in
Questions
Replies: 5 comments 1 reply
-
I am getting the same error, if found any solution comment down |
Beta Was this translation helpful? Give feedback.
0 replies
-
No not found any solution use it without -- reload that's the only way it's
not throwing errors
…On Sun, 5 May, 2024, 11:07 pm Angad Singh, ***@***.***> wrote:
I am getting the same error
—
Reply to this email directly, view it on GitHub
<#11435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX2DFCMT4ZXTKMKO2FIGDG3ZAZU7PAVCNFSM6AAAAABGF3C7S6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMRRGE2TI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I checked the uvicorn GitHub issues for this, found the fix : resolve, the problem only exist in the current version of uvicorn==0.29.0 , rest it is working fine in any previous versions like 0.28.1 or 0.27.1 etc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Awesome, thanks for the update! And how can I change the version
…On Mon, 6 May, 2024, 12:16 pm Angad Singh, ***@***.***> wrote:
I checked the uvicorn GitHub issues for this, found the fix : resolve, the
problem only exist in the current version of uvicorn==0.29.0 , rest it is
working fine in any previous versions like 0.28.1 or 0.27.1 etc.
—
Reply to this email directly, view it on GitHub
<#11435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX2DFCIZIQ726CSHLNU34QLZA4RMPAVCNFSM6AAAAABGF3C7S6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMRVGI2TA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you!!!
…On Mon, 13 May, 2024, 8:18 pm Angad Singh, ***@***.***> wrote:
You can download any FastAPI version using pip install fastapi=={version
name}
—
Reply to this email directly, view it on GitHub
<#11435 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX2DFCLPQUQHHPZJW3M2BR3ZCDHFDAVCNFSM6AAAAABGF3C7S6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMRRHA4TO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
i am changing the path in @app.get then it works fine with univorn main:app but if i use --reload it throws
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [14500]
Process SpawnProcess-1:
Traceback (most recent call last):
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\karth\Projects\Fastapi\venv\Lib\site-packages\uvicorn_subprocess.py", line 78, in subprocess_started
target(sockets=sockets)
File "C:\Users\karth\Projects\Fastapi\venv\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\karth\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 123, in run
raise KeyboardInterrupt()
KeyboardInterrupt
INFO: Started server process [16988]
INFO: Waiting for application startup.
INFO: Application startup complete.
this
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.110.1
Pydantic Version
2.6.4
Python Version
Python 3.11.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions