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

🚰 部署问题反馈【本地Win11,Serverless(阿里云)部署,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 #134

Closed
mtuwei opened this issue Mar 27, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mtuwei
Copy link

mtuwei commented Mar 27, 2023

问题交流 💬

image

问题描述 🤔

如下图示,本地【Go】环境变量,以及【Aliyun】部署区域都做了调整,但还是会出现上图中的报错。
image
image

注:按照https://github.com/Leizhenpeng/feishu-chatgpt/issues/39#issuecomment-1455754316:

  • 设置【区域】为香港
  • 设置【系统】为【ubuntu】时,提示:
    image

附加信息 📝

  • 操作系统:
    image

  • 软件版本:
    image
    image

@mtuwei mtuwei added the bug Something isn't working label Mar 27, 2023
@mtuwei mtuwei changed the title 🐞 错误报告【Error:Command failed with exit code 1: go mod tidy】 🐞 错误报告【Serverless(阿里云)安装,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 Mar 28, 2023
@mtuwei mtuwei changed the title 🐞 错误报告【Serverless(阿里云)安装,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 🐞 错误报告【本地Win11,Serverless(阿里云)部署,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 Mar 28, 2023
@mtuwei mtuwei changed the title 🐞 错误报告【本地Win11,Serverless(阿里云)部署,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 🚰 部署问题反馈【本地Win11,Serverless(阿里云)部署,调整了区域,依然报错:Command failed with exit code 1: go mod tidy】 Mar 28, 2023
@mtuwei
Copy link
Author

mtuwei commented Mar 28, 2023

问题交流 💬

image

问题描述 🤔

如下图示,本地【Go】环境变量,以及【Aliyun】部署区域都做了调整,但还是会出现上图中的报错。 image image

注:按照https://github.com/Leizhenpeng/feishu-chatgpt/issues/39#issuecomment-1455754316:

  • 设置【区域】为香港
  • 设置【系统】为【ubuntu】时,提示:
    image

附加信息 📝

  • 操作系统:
    image
  • 软件版本:
    image
    image

【原因】:

GOPROXY默认配置【 https://proxy.golang.org 】已被墙,大陆地区无法访问

【解决方案】:

修改代理:
go env -w GOPROXY=https://goproxy.cn,direct

@mtuwei mtuwei closed this as completed Mar 28, 2023
@mtuwei
Copy link
Author

mtuwei commented Mar 28, 2023

关于【调用未授权】的报错:

image

【解决方案】:

  1. 进入【用户】访问控制页面,点击【添加权限】
    image

  2. 选择【AliyunFCFullAccess】,点击【确定】
    image

@mtuwei
Copy link
Author

mtuwei commented Mar 28, 2023

@Leizhenpeng ,建议添加到【常用问题汇总】,应该会帮助到国内大陆地区用Win部署的其他IT小白。

@Leizhenpeng
Copy link
Member

蟹蟹指出

@mtuwei
Copy link
Author

mtuwei commented Mar 29, 2023

蟹蟹指出

不客气,应该谢谢您才是,项目开源方便了很多非IT用户👍

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

2 participants