0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Fast APIが起動できなかった 原因:同じポート8000で複数のPIDがLISTENしていた

Last updated at Posted at 2025-10-25

ChatGPTに助けてもらいながらPythonでFastAPIを初めて触ってみました。

なかなかFastAPIとReactとの接続がうまくいかず
でGPTも全然解決する策を教えてくれず。

やっとたどり着いたのが
・同じポート8000で複数のPIDがLISTENしていた
でした
netstat -ano | findstr :8000
tasklist | findstr python
tasklist | findstr uvicorn
とかをPowerShellで叩いて
taskkill /PID [返ってきたPID] /F

うまくいきました

あとは
・urlがlocalhost:8000ではなく127.0.0.1:8000
とか
もありましたね

自分用に備忘録として残しておきます

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?