Skip to content

Could the "Access Denied." message be made more informative, after trying "gem push *.gem" and failing at that? #7595

Description

@rubyFeedback

I am currently testing a few things via a new account.

So I built a local .gem file successfully, for a new gem; then I am trying to
push it, via:

gem push *.gem

I then get this message:

Pushing gem to https://rubygems.org...
Access Denied. Please sign up for an account at https://rubygems.org

I am, however had, logged in with that test account at rubygems.org, so the
message "sign up for an account" is confusing. I assume there may be some
other issue, be it cache-related or some data that is conflicting or
missing. (I did, however had, remove ~/.gem and then recompiled ruby
from source, and also cleared all old cookies etc...)

Either way what this is, the message "Access Denied", and then the
"Please sign up for an account" is confusing, because I have a new account
at rubygems.org, so signing up for yet-another account makes no sense in
my situation here, which makes the commandline notification a bit awkward;
it seems whoever wrote this did not consider that such an account may
already exist. Thus I assume there is some other problem to be the
culprit here.

Would it be possible to provide more useful information than merely
the "Access Denied" message? The "Access Denied" does not tell me
much at all. I don't have a good alternative suggestion for a message because
I do not know what the real issue is. Also, I have not been able to
find a commandline option to specify additional data, e. g. email or something.

In the past, rubygems always asked me to provide e. g. my email before I would
push a gem, but I do not seem to be able to specify this via the commandline, or
I have not found how that can be done. Would be nice to have this
available via the commandline too, to avoid ambiguity; and if it already exists or
is added, to perhaps also add this to the "gem help examples", which is, by the
way, rather useful (could need some more examples too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions