labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.49k stars 4.69k forks source link

JS运行失败 #1761

Closed ppkitty closed 4 months ago

ppkitty commented 4 months ago

例行检查

你的版本

问题描述, 日志截图 运行JS模块出错 { "message": "connect ECONNREFUSED ::1:80", "name": "Error", "method": "post", "url": "undefined/sandbox/js", "code": "ECONNREFUSED" } 不知道要怎么准备运行环境,谢谢 复现步骤

预期结果 JS能正常运行 相关截图

c121914yu commented 4 months ago

看 4.8.2 升级说明

ppkitty commented 3 months ago

升级说明就一句话,是我找错地方了吗? https://doc.fastgpt.in/docs/development/upgrading/482/#v482-%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E V4.8.2 更新说明 新增 - js代码运行节点(更完整的type提醒,后续继续完善) 新增 - 内容提取节点支持数据类型选择 修复 - 新增的站点同步无法使用 修复 - 定时任务无法输入内容

c121914yu commented 3 months ago

升级说明就一句话,是我找错地方了吗? https://doc.fastgpt.in/docs/development/upgrading/482/#v482-%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E V4.8.2 更新说明 新增 - js代码运行节点(更完整的type提醒,后续继续完善) 新增 - 内容提取节点支持数据类型选择 修复 - 新增的站点同步无法使用 修复 - 定时任务无法输入内容

里面很明确了呀,要部署啥,改啥变量

ppkitty commented 3 months ago

还是报错呢: [Nest] 1 - 06/24/2024, 9:11:41 AM LOG [NestFactory] Starting Nest application... 2[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [InstanceLoader] AppModule dependencies initialized +11ms 3[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [RoutesResolver] SandboxController {/sandbox}: +41ms 4[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [RouterExplorer] Mapped {/sandbox/js, POST} route +2ms 5[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [NestApplication] Nest application successfully started +2ms 6Application is running on: http://127.0.0.1:3000/ 7error => Cannot GET /sandbox/js 8error => main is not defined

c121914yu commented 3 months ago

还是报错呢: [Nest] 1 - 06/24/2024, 9:11:41 AM LOG [NestFactory] Starting Nest application... 2[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [InstanceLoader] AppModule dependencies initialized +11ms 3[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [RoutesResolver] SandboxController {/sandbox}: +41ms 4[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [RouterExplorer] Mapped {/sandbox/js, POST} route +2ms 5[Nest] 1 - 06/24/2024, 9:11:41 AM LOG [NestApplication] Nest application successfully started +2ms 6Application is running on: http://127.0.0.1:3000/ 7error => Cannot GET /sandbox/js 8error => main is not defined

没按模板代码执行,模板代码是有main函数的