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

daodao老师 还要向您求教,前端报错。 #17

Open
sherry0630 opened this issue Apr 5, 2023 · 1 comment
Open

daodao老师 还要向您求教,前端报错。 #17

sherry0630 opened this issue Apr 5, 2023 · 1 comment

Comments

@sherry0630
Copy link

chatdoc-backend | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
chatdoc-backend | INFO: Will watch for changes in these directories: ['/data']
chatdoc-backend | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
chatdoc-backend | INFO: Started reloader process [1] using StatReload
chatdoc-backend | INFO: Started server process [98]
chatdoc-backend | INFO: Waiting for application startup.
chatdoc-backend | INFO: Application startup complete.
chatdoc-frontend | 6:33:04 AM [vite] http proxy error at /my_docs:
chatdoc-frontend | Error: connect ECONNREFUSED 127.0.0.1:8000
chatdoc-frontend | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1532:16)
chatdoc-frontend | 6:33:13 AM [vite] http proxy error at /upload:
chatdoc-frontend | Error: connect ECONNREFUSED 127.0.0.1:8000
chatdoc-frontend | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1532:16)
目前是这样的,前端网页能显示 但是实现不了任何功能,报错信息如上 请问是哪里需要修改吗?谢谢

@daodao97
Copy link
Owner

daodao97 commented Apr 5, 2023

Error: connect ECONNREFUSED 127.0.0.1:8000
前端vite转发接口请求到后端时没有成功,可以看下后端服务是都正常启动,如果正常会有一个fastapi启动的日志

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

2 participants