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

是否一定要联网才能部署 #1434

Open
6 of 7 tasks
zhuangjiayue opened this issue May 10, 2024 · 9 comments
Open
6 of 7 tasks

是否一定要联网才能部署 #1434

zhuangjiayue opened this issue May 10, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@zhuangjiayue
Copy link

zhuangjiayue commented May 10, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.7

问题描述, 日志截图

这个版本是否一定要联网才能部署,离线部署新建应用时,发现会请求https://api-github.com/repos/labring/FastGPT ,导致新建应用访问不成功

复现步骤

预期结果

相关截图

@zhuangjiayue zhuangjiayue added the bug Something isn't working label May 10, 2024
@nongmo677
Copy link
Contributor

emm.. 可能你在config里加上设置show_git为false就不会请求了

  "feConfigs": {
    "show_git": false
  },
...其他部分不变

可以试试

@c121914yu
Copy link
Collaborator

这个接口报错和应用没任何关系

@zhuangjiayue
Copy link
Author

emm.. 可能你在config里加上设置show_git为false就不会请求了

  "feConfigs": {
    "show_git": false
  },
...其他部分不变

可以试试
试了不行,看了下源代码:
\projects\app\src\web\common\system\useSystemStore.ts

gitStar: 9300,
        async loadGitStar() {
          try {
            const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');

            set((state) => {
              state.gitStar = git.stargazers_count;
            });
          } catch (error) {}
        },

这个造成的,一定要请求公网

@zhuangjiayue
Copy link
Author

emm.. 可能你在config里加上设置show_git为false就不会请求了

  "feConfigs": {
    "show_git": false
  },
...其他部分不变

可以试试

看console应该是配置问题,WeakRef is not defined

@nongmo677
Copy link
Contributor

Nodejs版本呢?

@zhuangjiayue
Copy link
Author

Nodejs版本呢?

18.17.1版本。

@jeffreychen567
Copy link

我也是这个问题,要部署到内网,用本地的大模型,无法联网,页面各种出不来,一但联网就可以,是个灾难性问题,私有化部署就是不想联网啊

@c121914yu
Copy link
Collaborator

c121914yu commented May 20, 2024

我也是这个问题,要部署到内网,用本地的大模型,无法联网,页面各种出不来,一但联网就可以,是个灾难性问题,私有化部署就是不想联网啊

我们也有内网,都能正常用。

@jeffreychen567
Copy link

@c121914yu 你是怎么解决的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants