Skip to content

项目运行的问题,前端界面报错:SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #23

@duxueyuan7802632

Description

@duxueyuan7802632

按照项目说明的步骤:

  1. Run npm run start 。 浏览器自动弹出界面。
  2. cd back-end and Run python 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.
  3. 我的key,openai.proxy都设置完成了。
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions