maxime1992 / dev-to-git

Publish a blog post (markdown file) to Dev.to from your command line or from CI with this CLI
MIT License
27 stars 13 forks source link

Update an article which has an empty body #19

Closed maxime1992 closed 2 years ago

maxime1992 commented 4 years ago

If an article has an empty body, it should be able to update (which is not the case)

Error name: "Error"
Error message: ""
Error stack: "Error
    at Article.<anonymous> (/home/maxime/Documents/perso/projects/my-dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:11180:39)
    at step (/home/maxime/Documents/perso/projects/my-dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:77:27)
    at Object.next (/home/maxime/Documents/perso/projects/my-dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:58:57)
    at fulfilled (/home/maxime/Documents/perso/projects/my-dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:48:62)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)"

To repro:

gabbersepp commented 4 years ago

I encountered the same situation the last few times I write a new blog post. First it took some time to find out what was wrong :D

maxime1992 commented 2 years ago

Should be fixed by https://github.com/maxime1992/dev-to-git/pull/49 (thanks @xhiroga :clap:) (and a tiny follow up).

The fix should be available in v1.4.9