mbostock / gistup

Create a gist from terminal, then use git to update it.
Other
488 stars 41 forks source link

Getting Error: invalid gist id: undefined #11

Closed ff6347 closed 10 years ago

ff6347 commented 10 years ago

When trying to use the module (v 0.0.10) I get this error:

/usr/local/lib/node_modules/gistup/bin/gistup:85
    throw error;
          ^
Error: invalid gist id: undefined
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/gistup/bin/gistup:248:69)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)  

How can I fix this?

ff6347 commented 10 years ago

Thanks. I still got the same error though. But after removing the ~/.gistup.json and creating a new token for gistup it works now.

mbostock commented 10 years ago

I briefly pushed a release without the fix due to an error verifying that the fix worked. So, make sure you’re on 0.0.12. But also it now displays the response from GitHub if the API fails, so it should be easier for you to debug. Thanks for the report.

ff6347 commented 10 years ago

Aight. I just don't know now if the error was caused by my old token or the module itself : /

Seondong commented 8 years ago

Thank god, I had the same issue, I didn't know that how to access the home directory. The home directory can be accessible by cd ~/ instead of going all the way up to the root directory By making .gistup file(with my personal token) in ~/ directory, it works like a charm. Thanks!!