CaiJingLong / kikt-blog-comment

0 stars 0 forks source link

posts/flutter/package/publish-fail/ #10

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

flutter pub 发布失败 | caijinglong的博客

flutter pub 发布失败

https://www.kikt.top/posts/flutter/package/publish-fail/

CaiJingLong commented 5 years ago

可以在这里提问

CaiJingLong commented 5 years ago

你好,首先非常抱歉在该项目下提一个无关的issues。

我在发布flutter插件的时候遇到了一些问题,然后参照了你的这篇文章 "https://blog.csdn.net/qq_28478281/article/details/87283345。" 确保的curl google.com返回信息,使用flutter packages pub publish --dry-run 返回的第一行提示为"Publishing flutter_encrypt_lib 1.0.0 to https://pub.dartlang.org:"。

然后使用"flutter packages pub publish --server=https://pub.dartlang.org",输入"y",返回了一个url认证,点击链接后,控制台一直显示 " Waiting for your authorization... Authorization received, processing... It looks like accounts.google.com is having some trouble. Pub will wait for a while before trying to connect again. OS Error: Operation timed out, errno = 60, address = accounts.google.com, port = 55083 pub finished with exit code 69 " 能获取一下你的帮助嘛?多谢了。 以下是"flutter doctor" [✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1) [✓] Android Studio (version 3.4) [!] Proxy Configuration ! NO_PROXY is not set [✓] Connected device (1 available) 再次感谢你查看我的issues

@juggist 从日志信息来看, 这个是远端的 google帐号验证体系报错了

juggist commented 5 years ago

你好,首先非常抱歉在该项目下提一个无关的issues。 我在发布flutter插件的时候遇到了一些问题,然后参照了你的这篇文章 "https://blog.csdn.net/qq_28478281/article/details/87283345。" 确保的curl google.com返回信息,使用flutter packages pub publish --dry-run 返回的第一行提示为"Publishing flutter_encrypt_lib 1.0.0 to https://pub.dartlang.org:"。 然后使用"flutter packages pub publish --server=https://pub.dartlang.org",输入"y",返回了一个url认证,点击链接后,控制台一直显示 " Waiting for your authorization... Authorization received, processing... It looks like accounts.google.com is having some trouble. Pub will wait for a while before trying to connect again. OS Error: Operation timed out, errno = 60, address = accounts.google.com, port = 55083 pub finished with exit code 69 " 能获取一下你的帮助嘛?多谢了。 以下是"flutter doctor" [✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1) [✓] Android Studio (version 3.4) [!] Proxy Configuration ! NO_PROXY is not set [✓] Connected device (1 available) 再次感谢你查看我的issues

从日志信息来看, 这个是远端的 google帐号验证体系报错了

你好,首先非常抱歉在该项目下提一个无关的issues。 我在发布flutter插件的时候遇到了一些问题,然后参照了你的这篇文章 "https://blog.csdn.net/qq_28478281/article/details/87283345。" 确保的curl google.com返回信息,使用flutter packages pub publish --dry-run 返回的第一行提示为"Publishing flutter_encrypt_lib 1.0.0 to https://pub.dartlang.org:"。 然后使用"flutter packages pub publish --server=https://pub.dartlang.org",输入"y",返回了一个url认证,点击链接后,控制台一直显示 " Waiting for your authorization... Authorization received, processing... It looks like accounts.google.com is having some trouble. Pub will wait for a while before trying to connect again. OS Error: Operation timed out, errno = 60, address = accounts.google.com, port = 55083 pub finished with exit code 69 " 能获取一下你的帮助嘛?多谢了。 以下是"flutter doctor" [✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1) [✓] Android Studio (version 3.4) [!] Proxy Configuration ! NO_PROXY is not set [✓] Connected device (1 available) 再次感谢你查看我的issues

@juggist 从日志信息来看, 这个是远端的 google帐号验证体系报错了

3C1369D044A2FE1EB6B58A3518841041 显示我认证成功了,是不是chrom需要装什么插件嘛?

CaiJingLong commented 5 years ago

@juggist 你可以先试试看你的包在pub.dev 有没有发布成功, 因为有的时候虽然命令行会报错, 但是实际上包发布成功了

CaiJingLong commented 5 years ago

@juggist

  1. 正常情况下, 应该不需要chrome插件
  2. 上传的时候,如果是shadowsocks/SSR的代理可能会出问题, 似乎是某个证书校验不对, 或者pub端检测被劫持之类的, 具体原因我也不太清楚. 如果ss不可用, 可以尝试使用vpn
juggist commented 5 years ago

@juggist 你可以先试试看你的包在pub.dev 有没有发布成功, 因为有的时候虽然命令行会报错, 但是实际上包发布成功了

pub.dev没找到我的插件。

CaiJingLong commented 5 years ago

https://pub.dartlang.org 换成 https://pub.dev 试试看

juggist commented 5 years ago

@juggist

  1. 正常情况下, 应该不需要chrome插件
  2. 上传的时候,如果是shadowsocks/SSR的代理可能会出问题, 似乎是某个证书校验不对, 或者pub端检测被劫持之类的, 具体原因我也不太清楚. 如果ss不可用, 可以尝试使用vpn

我用的就是shadowsocksd代理,请问你也是用这个代理的嘛?

CaiJingLong commented 5 years ago

flutter packages pub publish --server=https://pub.dev

juggist commented 5 years ago

flutter packages pub publish --server=https://pub.dev

跟之前一样,还是不行。

CaiJingLong commented 5 years ago

如果你有vpn, 可以尝试使用vpn试试看 比如AnyConnect/OpenConnect, WireGuard 之类的东西

shadowsocks 是一个sock5代理 一些具体的实现软件可能会有实现漏洞或没有完全符合规范, 造成无法代理的情况

嗯 vpn/ss 不是一码事

juggist commented 5 years ago

好的,我再去试试你提的vpn。 非常感谢你。

juggist commented 5 years ago

最终shadow socks + proxifier 解决了这个问题。