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

181 天前
 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 没问题,不知该怎么办了,求佬指点一下

958 次点击
所在节点    Flutter
7 条回复
zoharSoul
181 天前
终端已走代理 详细描述下这个
burden7
181 天前
@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
181 天前
用 socks5h:// 或者 http 代理试试
zhcode
181 天前
开源的话可以尝试用 github action 发
burden7
181 天前
@billlee 诶似乎可以了,不知道是不是这个原因,不过是 uploaded 了!感谢!
burden7
181 天前
@zhcode 是开源的。好的,你说的这个我去看看~
begeneral
180 天前
急着用,可以 git 仓库上传下,在 pub 里引用下即可

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/991016

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX