Flutter 向 pub.dev 提交 packages 问题求助

查看 106|回复 6
作者:burden7   
使用
flutter pub publish --server=https://pub.dartlang.org

flutter pub publish
命令执行 upload ,弹出 auth 认证链接,进入链接登陆 Google 账户后开始陷入等待
Waiting for your authorization...
Authorization received, processing...
最终提示
ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = accounts.google.com, port = 49595, uri=https://accounts.google.com/o/oauth2/token
环境:macos terminal 和 AndroidStudio terminal
终端已走代理,curl www.google.com 没问题,不知该怎么办了,求佬指点一下

flutter, publish, timed, Operation

zoharSoul   
终端已走代理 详细描述下这个
burden7
OP
  
@zoharSoul zshrc 中声明了别名 proxy 开关
alias proxy="
export http_proxy=socks5://127.0.0.1:1086;
export https_proxy=socks5://127.0.0.1:1086;
export all_proxy=socks5://127.0.0.1:1086;
export no_proxy=socks5://127.0.0.1:1086;
export HTTP_PROXY=socks5://127.0.0.1:1086;
export HTTPS_PROXY=socks5://127.0.0.1:1086;
export ALL_PROXY=socks5://127.0.0.1:1086;
export NO_PROXY=socks5://127.0.0.1:1086;"
alias unproxy="
unset http_proxy;
unset https_proxy;
unset all_proxy;
unset no_proxy;
unset HTTP_PROXY;
unset HTTPS_PROXY;
unset ALL_PROXY;
unset NO_PROXY"
socks5 监听端口 1086
billlee   
用 socks5h:// 或者 http 代理试试
zhcode   
开源的话可以尝试用 github action 发
burden7
OP
  
@billlee 诶似乎可以了,不知道是不是这个原因,不过是 uploaded 了!感谢!
burden7
OP
  
@zhcode 是开源的。好的,你说的这个我去看看~
您需要登录后才可以回帖 登录 | 立即注册

返回顶部