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

Publishing error #4

Open
ashutoshmjain opened this issue Feb 9, 2017 · 5 comments
Open

Publishing error #4

ashutoshmjain opened this issue Feb 9, 2017 · 5 comments

Comments

@ashutoshmjain
Copy link

Hi Andy @lambtron

First, thanks for creating this very useful app. Like you , I wish if I could publish Medium from CLI

I installed it thru npm and looks every thing is working fine except for the publishing .. here is a complete view of what I did .. Please advise if I am missing anything

`bash-4.3$ pwd
/home/ajain/buzzfeed
bash-4.3$ medium login

medium · Please open https://medium.com/me/settings in your browser.
· At the bottom of the page, under Integration Tokens, copy
· this description:

     · "Medium-CLI basic publishing access."

     · Then generate the new token and copy it.

Paste your Integration Token here:
#####################################################################

     · Authenticating into Medium..

     · Saved!

bash-4.3$ medium publish
(node:19796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'split' of undefined
bash-4.3$ ls
articles
bash-4.3$ cd articles/
bash-4.3$ ls
test-post-from-medium-cli
bash-4.3$ cd test-post-from-medium-cli/
bash-4.3$ ls
index.md
bash-4.3$ cat index.md

title: test post from medium command line interface
tags:
canonicalUrl:
publishStatus: draft
license: all-rights-reserved

Testing a post from medium command line interface
bash-4.3$ `

@ashutoshmjain
Copy link
Author

btw - all the other three commands are working fine ..

@suredream
Copy link

Me too. Medium publish command didn't work at all and no related information founded.

@lambtron
Copy link
Owner

Thanks for sharing. Let me see what might be the issue.

@lambtron
Copy link
Owner

Hmm this works for me.

What OS are you using? And node/npm version?

Thanks!

@suredream
Copy link

suredream commented May 12, 2017 via email

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

No branches or pull requests

3 participants