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

unexpected 'Token generation refused by Github.' error #5

Closed
trentm opened this issue Jun 22, 2012 · 3 comments
Closed

unexpected 'Token generation refused by Github.' error #5

trentm opened this issue Jun 22, 2012 · 3 comments
Labels

Comments

@trentm
Copy link

trentm commented Jun 22, 2012

Have you seen this before?

$ gista --user trentm --gentoken
Password: 

/Users/trentm/opt/node-0.6.19/lib/node_modules/gista/bin/gista:191
      throw new Error('Token generation refused by Github.');
            ^
Error: Token generation refused by Github.
    at /Users/trentm/opt/node-0.6.19/lib/node_modules/gista/bin/gista:191:13
    at /Users/trentm/opt/node-0.6.19/lib/node_modules/gista/node_modules/node-gist/index.js:59:9
    at IncomingMessage.<anonymous> (/Users/trentm/opt/node-0.6.19/lib/node_modules/gista/node_modules/node-gist/node_modules/nest/index.js:164:11)
    at IncomingMessage.emit (events.js:88:20)
    at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:130:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1288:20)
    at CleartextStream._push (tls.js:375:27)
    at SecurePair.cycle (tls.js:734:20)
    at EncryptedStream.write (tls.js:130:13)
    at Socket.ondata (stream.js:38:26)

Install details:

$ npm ls -g
/Users/trentm/opt/node-0.6/lib
├─┬ gista@0.3.3 
│ ├── async-array@0.1.7 
│ ├─┬ node-gist@0.2.3 
│ │ ├─┬ microtest@0.2.3 
│ │ │ ├── fake@0.2.1 
│ │ │ └── oop@0.0.3 
│ │ └── nest@0.1.6 
│ ├─┬ nopt@1.0.10 
│ │ └── abbrev@1.0.3 
│ └── read@0.1.0 
...
$ npm --version
1.1.24
$ node --version
v0.6.19

I copied in the same password with which I am able to login to github.

Thanks for any help.

@tim-smart
Copy link
Owner

Hmm. When you say copied, do you mean copy paste? I'm using https://github.com/isaacs/read for the prompt, which apparently has some limitations.

If you don't mind, you could also try:

gista --user trentm --password xxx --gentoken

@trentm
Copy link
Author

trentm commented Jun 22, 2012

Yes, I meant copy/paste. It worked when I manually type in the password. Thanks.

Boo on "read". :) I didn't see an appropriate issue on isaac's project.

@tim-smart
Copy link
Owner

To conclude, this is actually an issue with a dependency. I'll create an issue upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants