Comments (4)
Hey Andrew,
Thank you for bringing this issue to my attention.
I recently encountered a similar error, and it turned out to be due to another process running on port 8000. By terminating that process, I was able to resolve the issue.
To address the problem you're facing, please ensure that no other processes are using port 8000. If there is a conflict, you have two options:
-
Terminate the conflicting process: This will free up port 8000 for your FastAPI application.
-
Change the FastAPI port: If you prefer not to or cannot stop the other process, you can run the FastAPI application on a different port. You can find instructions on how to do this in this article.
If you opt to run FastAPI on a different port, you'll also need to update the port number in app/services/api.js
for all fetch calls. Apologies for the inconvenience, as I didn't implement a BASE_URL
constant to make this process easier.
I hope this helps resolve your issue. Feel free to reach out if you have any further questions or concerns.
Best regards,
Kie
from kiecodes-gpt-webapp.
Great - I changed the port from 8000 and use this command line arg to set the new port:
uvicorn main:app --port 3000
from kiecodes-gpt-webapp.
Hello again, since the react app is running on port 3000, you need to use a different port other than 3000.
I would suggest port port 3001 for the python FastAPI part. But remember to also change the used port in the JS part as described in my first answer.
from kiecodes-gpt-webapp.
This issue was solved. I got confirmation via Discord . I am closing this issue now.
from kiecodes-gpt-webapp.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiecodes-gpt-webapp.