409 Conflict returned for non-existent gem

Brandon Robins's Avatar

Brandon Robins

21 Nov, 2017 07:47 AM

I'm running into an issue where I'm trying to publish a new gem (calligraphy), but I'm not able to. Searches for this gem on rubygems.org return "No Gems Found", which makes sense... but when publishing it I get a 409, even though no versions were found.

$ gem install calligraphy
ERROR:  Could not find a valid gem 'calligraphy' (>= 0) in any repository
ERROR:  Possible alternatives: callgraphy, call_graph, cartography, callgrapher, cartograph

$ gem push --verbose calligraphy-0.1.0.gem
GET https://api.rubygems.org/latest_specs.4.8.gz
304 Not Modified
Pushing gem to https://rubygems.org...
POST https://rubygems.org/api/v1/gems
409 Conflict
Repushing of gem versions is not allowed.
Please use `gem yank` to remove bad gem releases.

I assume that all versions were yanked if nothing can be found, but if that's the case, shouldn't I be able to push my gem to that namespace?

  1. 1 Posted by Brandon Robins on 21 Nov, 2017 03:31 PM

    Brandon Robins's Avatar

    Some additional info:

    When using the RubyGems API (curl 'https://rubygems.org/api/v1/gems/calligraphy/owners.json'), I was able to get a list of supposed owners for calligraphy, but when I look up the owner listed, using one of the API Owner methods (curl 'https://rubygems.org/api/v1/owners/amckinnell/gems.json'), the only gems that come back are callgraphy and nutrella. Neither of them have the same name as mine, calligraphy, although one is close (just missing one letter).

    Without knowing too much about the implementation, it seems like there may be a issue with matching similarly named gems during operations like gem push.

    Here are the gemspecs for the similarly named gems:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac