Giter Site home page Giter Site logo

Comments (4)

thekie avatar thekie commented on September 17, 2024

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:

  1. Terminate the conflicting process: This will free up port 8000 for your FastAPI application.

  2. 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.

luckandrew avatar luckandrew commented on September 17, 2024

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.

thekie avatar thekie commented on September 17, 2024

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.

thekie avatar thekie commented on September 17, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.