question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated Image cannot be found.

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
Sneezoocommented, Jul 13, 2018

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?

2reactions
Sneezoocommented, Jul 14, 2018

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

PHP GD generated image The image cannot be displayed ...
In NotePad++, open the PHP file that calls the imagepng function, and save it after going to menu Encoding > Convert to UTF-8...
Read more >
PHP GD: The image cannot be displayed because it contains ...
$im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream');. You first hide the real error and TRY to display something.
Read more >
Images cannot be generated, because your PHP installation's ...
I've installed Drupal a week ago and I have a problem with th GD library. I've installed it from http://il2.php.net/gd like i was...
Read more >
Why Is This Viral Image of Unrecognizable Objects So Creepy?
A photo that recently went viral on Twitter has puzzled and unsettled thousands of viewers; while the image is full of objects, none...
Read more >
Can not use Stylegan3 to generate images. #142 - GitHub
I am using Python 3.9.7 on Windows 10. First, I used conda to install all the packages, but I found the requirement.yml seems...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found