dart-archive / pub-dartlang

DEPRECATED - old pub.dartlang.org site in Python
https://github.com/dart-lang/pub-dartlang-dart
Other
43 stars 18 forks source link

Pub lish fails with "Connection failed" #190

Open DartBot opened 10 years ago

DartBot commented 10 years ago

From @sethladd on March 21, 2013 02:50:11

I have a local pub server. I get this error when I try to publish:

pub -v lish --server=http://localhost:8086

FINE: Showing confirm message: Package has 4 warnings. Upload anyway Package has 4 warnings. Upload anyway (y/n)? y FINE: Loading OAuth2 credentials. FINE: Saving OAuth2 credentials. FINE: Ensuring directory /Users/sethladd/.pub-cache exists. IO : Writing 282 characters to text file /Users/sethladd/.pub-cache/credentials.json. FINE: HTTP GET http://localhost:8086/packages/versions/new.json | authorization: FINE: Saving OAuth2 credentials. FINE: Ensuring directory /Users/sethladd/.pub-cache exists. IO : Writing 282 characters to text file /Users/sethladd/.pub-cache/credentials.json. FINE: Clean up system cache temp directory /Users/sethladd/.pub-cache/_temp. ERR : Connection failed

Unfortunately, "Connection failed" doesn't have any details.

When I manually go to "http://localhost:8086/packages/versions/new.json I see "No private key set".

Recommendation: Display the reason message when the command fails.

sethladd:~/Code/lawndart (master)$ pub --version Pub 0.4.0+0. r20187 .sethladd

Original issue: http://code.google.com/p/dart/issues/detail?id=9333

DartBot commented 10 years ago

From @sethladd on March 20, 2013 18:50:22

Summary: Pub lish fails with "Connection failed" (was: Pub lish fails with )

DartBot commented 10 years ago

From @sethladd on March 21, 2013 13:46:25

For the record, now with a recent fix, when I go to http://localhost:8086/packages/versions/new.json I see the appropriate and expected response.

The root issue remains, the pub client bails out with "Connection failed" before contacting the server.

DartBot commented 10 years ago

From @munificent on April 18, 2013 10:27:10

Maybe what we should do here is have the pub server just pick a default private key if it sees you've spun it up locally.

Labels: Milestone-Later

DartBot commented 10 years ago

From @munificent on April 18, 2013 10:27:40

Issue 9350 has been merged into this issue.

DartBot commented 10 years ago

From @munificent on August 21, 2013 17:05:02

Labels: -Area-Pub Area-PubSite

DartBot commented 10 years ago

From @kasperl on July 10, 2014 03:20:31

Labels: -Milestone-Later Oldschool-Milestone-Later

DartBot commented 10 years ago

From @kasperl on August 04, 2014 00:43:00

Labels: -Oldschool-Milestone-Later