V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
burden7
V2EX  ›  Flutter

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

  •  
  •   burden7 · 168 天前 · 946 次点击
    这是一个创建于 168 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用

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

    7 条回复    2023-11-12 17:14:01 +08:00
    zoharSoul
        1
    zoharSoul  
       168 天前
    终端已走代理 详细描述下这个
    burden7
        2
    burden7  
    OP
       168 天前
    @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
        3
    billlee  
       168 天前   ❤️ 1
    用 socks5h:// 或者 http 代理试试
    zhcode
        4
    zhcode  
       168 天前
    开源的话可以尝试用 github action 发
    burden7
        5
    burden7  
    OP
       168 天前
    @billlee 诶似乎可以了,不知道是不是这个原因,不过是 uploaded 了!感谢!
    burden7
        6
    burden7  
    OP
       168 天前
    @zhcode 是开源的。好的,你说的这个我去看看~
    begeneral
        7
    begeneral  
       167 天前
    急着用,可以 git 仓库上传下,在 pub 里引用下即可
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2982 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:11 · PVG 22:11 · LAX 07:11 · JFK 10:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.