jruby / jruby-openssl

JRuby's OpenSSL gem
http://www.jruby.org
Other
45 stars 80 forks source link

gem push fails with Broken Pipe IOError #242

Open AndyObtiva opened 3 years ago

AndyObtiva commented 3 years ago

Environment Information

Provide at least:

Other relevant info you may wish to add:

Expected Behavior

Running gem push path_to_gem.gem should result in releasing the gem to RubyGems.org successfully.

This works in jruby-9.2.19.0

Actual Behavior

In jruby-9.3.0.0, I get a broken pipe IOError when running gem push path_to_gem.gem:

% gem push pkg/glimmer-dsl-swt-4.21.0.1.gem 
Pushing gem to https://rubygems.org...
ERROR:  While executing gem ... (IOError)
    Broken pipe

It works fine in ruby-3.0.2 and jruby-9.2.19.0. My Internet works well and the same in all cases.

headius commented 4 months ago

Oh, and it also sometimes works with some combination of gem login and gem push as though the credentials are getting screwed up.

[] jruby-openssl $ gem login
[] jruby-openssl $ gem push --verbose ruby-maven-libs-3.9.6.1.gem
Pushing gem to https://rubygems.org...
POST https://rubygems.org/api/v1/gems
connection reset after 1 requests, retrying
POST https://rubygems.org/api/v1/gems
401 Unauthorized
You have enabled multi-factor authentication. Please enter OTP code.
Code:   023862
POST https://rubygems.org/api/v1/gems
connection reset after 1 requests, retrying
POST https://rubygems.org/api/v1/gems
200 OK
Gem was already pushed: ruby-maven-libs (3.9.6.1)