Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues starting Fastapi and UI with npm run dev #1

Open
irthompson01 opened this issue Feb 4, 2024 · 0 comments
Open

Issues starting Fastapi and UI with npm run dev #1

irthompson01 opened this issue Feb 4, 2024 · 0 comments

Comments

@irthompson01
Copy link

irthompson01 commented Feb 4, 2024

EDIT: I figured out what my issue was... in package.json, it was calling python3 when I just needed it to call python. This repo is teaching me a lot about frontend and node.js, thank you!

When I start the application with npm run dev, The UI starts fine, but the fastapi server does not start because it can't find python. However I can start fastapi separately in another terminal, then start the UI and everything works great.... Another note, I also had to specify a GPT model in index.py, line 110 llm = ChatOpenAI(model_name="gpt-4-0125-preview") to avoid a token limit.

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. [1] npm run fastapi-dev exited with code 9009 [0] - wait compiling /page (client and server)... [0] Browserslist: caniuse-lite is outdated. Please run: [0] npx update-browserslist-db@latest [0] Why you should do it regularly: https://github.com/browserslist/update-db#readme [0] - event compiled client and server successfully in 2.8s (2156 modules) [0] - wait compiling... [0] - event compiled successfully in 289 ms (1812 modules) [0] Failed to proxy http://127.0.0.1:8000/api/scrape Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] } [0] - error Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant