carbon-now-cli: Generated Image cannot be found.

I used the following to generate the image: carbon-now test.html

The following error resulted:

D:\test>carbon-now test.html
 √ Processing test.html
 √ Preparing connection
 ↓ Opening in browser [skipped]
 √ Fetching beautiful image

  Done!

  The file can be found here: D:\test/carbon.png 😌

  Error: Sending code to https://carbon.now.sh went wrong.

  This is mostly due to:

  – Insensical input like `--start 10 --end 2`
  – Carbon being down or taking too long to respond
  – Your internet connection not working or being too slow

The generated Image isn’t available in the given path.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I suspect Page.downloadBehavior to be the problem, but I can’t prove it with tests so I just wrote a hacky workaround for you guys. You can clone my fork https://github.com/Sneezoo/carbon-now-cli and checkout downloadBehavior-workaround:

git clone https://github.com/Sneezoo/carbon-now-cli.git
git checkout downloadBehavior-workaround

Ah yeah… please keep in mind that file format and target directory options are not effective in my workaround by now. @boudhayan-dev @mittalyashu @rafal-olszewski Could you please try my fork and report back?

Hi! I hope my instructions haven’t been too unclear. My fix is not merged to carbon-now-cli, yet. Also I will have to invest more time on it, to make it stable and enable features like SVG and selecting a target directory. This time the complete instructions, to try the workaround:

git clone https://github.com/Sneezoo/carbon-now-cli.git
cd carbon-now-cli
git checkout downloadBehavior-workaround
npm install
node cli.js awesome-code.html # i also had to add '-S' so you may try that, too

@boudhayan-dev @mittalyashu You have to try it locally (not via the global that comes via npm i -g carbon-now-cli), since it’s a fork. 😃