-
Notifications
You must be signed in to change notification settings - Fork 65
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
项目运行的问题,前端界面报错:SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #23
Comments
前端网址端口应该是5000吧? 你是什么平台,linux?,看看包的版本之类的? |
感谢回复,我是windows11,后端启动的时候,有个警告,但我觉得不是这个原因吧 : UserWarning: The current Python is not a recommended version, 3.10+ is recommended |
你现在前后端可以打通吗。能看看具体报错位置在哪行代码和原因吗。 |
老师!前端执行没问题,http://localhost:5000/,但clear那个按钮失效。后端一直就not found http://127.0.0.1:3000/ (Press CTRL+C to quit)。当我在前端输入一端文字的时候,就报出我上面截图的错误,完后在后端就有如下错误提示: 在run.py代码中,我修改了静态模版和动态模版的路径,也没好使:app = Flask(name, template_folder='../front-end/public', static_folder='../front-end/src'),路径设置的有问题啊? |
大佬,跑通了,呵呵!代码问题! |
老师加个微信好不,我是银行做数据分析的,我觉得垂直领域做三元组抽取非常有前景~ 微信号 18940019791
Original Email
Sender:"threeColorFr"< ***@***.*** >;
Sent Time:2024/4/30 11:41
To:"cocacola-lab/ChatIE"< ***@***.*** >;
Cc recipient:"xueyuandu"< ***@***.*** >;"Author"< ***@***.*** >;
Subject:Re: [cocacola-lab/ChatIE] 项目运行的问题,前端界面报错:SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON (Issue #23)
你的意思是前后端可以打通跑出结果,但是clear没用是吗?
这个问题我复现不出来,我之前试的windows上运行也是没问题的。
你看看修改一下port proxy之类的呢。
2024-04-30.11.31.29.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
大佬,您的proxy怎么成功的?openai.api_base = "这里要填什么呀?" #或者利用反向代理openai.com(代理获取:https://github.com/justjavac/openai-proxy 反向代理那个教程我只在deno 弄了一个域名,openai api的key我申请了,但是布吉岛怎么用,是填到df_access = []里面吗?(为啥列表要分成两块?) 您整体的流程是咋样的?我到现在还是跑不起来作者的这个项目 |
按照项目说明的步骤:
npm run start
。 浏览器自动弹出界面。back-end
and Runpython run.py
. 。弹出提示:Running on http://127.0.0.1:3000/ (Press CTRL+C to quit),进入链接http://127.0.0.1:3000,界面内容为:Not Found。The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.4.我在前端尝试输入一段话,就报错:http://localhost:5000/ says SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON。后端也报错:TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.
The text was updated successfully, but these errors were encountered: