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

error for flutter packages pub publish #22481

Closed
droplet-js opened this issue Sep 30, 2018 · 8 comments
Closed

error for flutter packages pub publish #22481

droplet-js opened this issue Sep 30, 2018 · 8 comments
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@droplet-js
Copy link

Steps to Reproduce

// ignore

Logs

linhenglongdeMac-mini:fake_http v7lin$ flutter packages pub publish
Publishing fake_http 0.0.1 to https://pub.dartlang.org:
|-- .gitignore
|-- .idea
|   |-- codeStyles
|   |   '-- Project.xml
|   |-- libraries
|   |   |-- Dart_Packages.xml
|   |   |-- Dart_SDK.xml
|   |   '-- Flutter_Plugins.xml
|   |-- markdown-navigator
|   |   '-- profiles_settings.xml
|   |-- markdown-navigator.xml
|   |-- misc.xml
|   |-- modules.xml
|   |-- vcs.xml
|   '-- workspace.xml
|-- CHANGELOG.md
|-- COMMUNITY_INFO.yaml
|-- LICENSE
|-- README.md
|-- fake_http.iml
|-- lib
|   |-- fake_http.dart
|   '-- okhttp3
|       |-- authenticator.dart
|       |-- cache.dart
|       |-- cache_control.dart
|       | (16 more...)
|       |-- response_body.dart
|       |-- tools
|       |   |-- http_logging_interceptor.dart
|       |   |-- optimized_cache_interceptor.dart
|       |   |-- optimized_response_interceptor.dart
|       |   |-- persistent_cookie_jar.dart
|       |   |-- progress_interceptor.dart
|       |   |-- progress_request_interceptor.dart
|       |   |-- progress_response_interceptor.dart
|       |   '-- user_agent_interceptor.dart
|       '-- widget
|           '-- okhttp_network_image.dart
|-- pubspec.yaml
'-- test
    '-- fake_http_test.dart

Looks great! Are you ready to upload your package (y/n)? y
Pub needs your authorization to upload packages on your behalf.
In a web browser, go to https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&response_type=code&client_id=818368855108-8grd2eg9tj9f38os6f1urbcvsq399u8n.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A50108&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email
Then click "Allow access".

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: Connection reset by peer, errno = 54, address = accounts.google.com, port = 51290
pub finished with exit code 69
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
    • Flutter version 0.8.2 at /Users/v7lin/flutter
    • Framework revision 5ab9e70727 (3 weeks ago), 2018-09-07 12:33:05 -0700
    • Engine revision 58a1894a1c
    • Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/v7lin/Library/Android/sdk
    • Android NDK at /Users/v7lin/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/v7lin/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 28.0.2
    • Dart plugin version 181.5616
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2018.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 27.1.3
    • Dart plugin version 182.3911.37

[✓] Connected devices (3 available)
    • MI 5s     • 98d198d                                  • android-arm64 • Android 7.0 (API 24)
    • iPhone SE • d3ec26a3c3a2537e45e4f7b8f18c2a7ae79c9fe1 • ios           • iOS 12.0
    • iPhone X  • 34EF3098-175F-40A9-BF1A-32543A2C6224     • ios           • iOS 11.4 (simulator)
@zoechi
Copy link
Contributor

zoechi commented Oct 1, 2018

Did you open the printed URL and authenticate?

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Oct 1, 2018
@good-good-study
Copy link

good-good-study commented Apr 21, 2019

I have the same trouble , what to do ??? @zoechi

@juggist
Copy link

juggist commented Jun 27, 2019

I have the same trouble too, how to resolve @zoechi

@LeoDoldan7
Copy link

LeoDoldan7 commented Jul 11, 2019

Same issue here! Any update?

@LeoDoldan7
Copy link

I solved it!

Instead of running this
flutter pub publish

Run this
flutter pub pub publish

It worked perfectly.

@mikechoch
Copy link

@LeandroDoldan
What is the difference between?

  • flutter packages pub publish
  • flutter pub publish
  • flutter pub pub publish

I don't want to suffer any consequences I'm unaware of...

@laijinxian
Copy link

I have the same problem, how to solve N @zoechi

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

7 participants