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

运行前端时报错 #7

Open
lwang47utas opened this issue Apr 17, 2023 · 3 comments
Open

运行前端时报错 #7

lwang47utas opened this issue Apr 17, 2023 · 3 comments

Comments

@lwang47utas
Copy link

您好,部署repo后出现如下错误:

  1. 运行后端成功,显示代码如下
    image

  2. 运行前端时,显示若干ip地址
    image

  3. 打开 http://localhost:3000,输入问题,出现如下错误
    image

python main.py 是默认参数,没有改参数,在前端输入问题,回复500错误,请问如何调试?

@NCZkevin
Copy link
Owner

目前看这个问题有可能是因为当前vite版本在Node 18版本下EventStream有bug , 建议临时使用nvm或者其他node版本管理工具切换node到Node v16.15.0。 有空我复现之后会升级一下版本修复这个问题

@lwang47utas
Copy link
Author

好的我试一下版本管理node谢谢

@iamdbb
Copy link

iamdbb commented Apr 23, 2023

因为没监听本机的ipv6,你可以把配置文件中改成 http://127.0.0.1:3002/ 就好了

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

3 participants