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.

Timeout with local html file

See original GitHub issue

I was just testing something out simple with this and plugged in a basic html file

<!DOCTYPE html>
<html lang="en">
  <title> </title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://unpkg.com/tachyons/css/tachyons.min.css">
  <body>
    <button data-sketch-symbol="Button/Primary" class="bw1-l br2 bg-dwyl-teal pa2 white fw1 tc ttu tracked">do what you love</button>
    <div data-sketch-text="Heading" class="f1 fw7 sans-serif lh-title">Headline 1</div>
    <div data-sketch-text="Body" class="sans-serif lh-copy">Body</div>
    <div data-sketch-color="#A463F2" class="pa4 bg-light-purple">&nbsp;</div>
  </body>
</html>

I followed the readme, but I’m getting a timeout error. Am I missing something?

$ npm install --global html-sketchapp-cli
$ html-sketchapp --file index.html --out-dir .
Error: Timeout
    at Timeout._onTimeout (/usr/local/lib/node_modules/html-sketchapp-cli/node_modules/wait-on/lib/wait-on.js:92:10)
    at ontimeout (timers.js:458:11)
    at tryOnTimeout (timers.js:296:5)
    at Timer.listOnTimeout (timers.js:259:5)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kidkurocommented, Feb 19, 2018

This error occurs if your --file argument has a typo, or isn’t relative to where you’re running the command, since the URL is resolved like this:

const url = argv.file ? `file://${path.join(process.cwd(), argv.file)}` : argv.url;
0reactions
valoricDecommented, Jun 27, 2018

I just updated and the problem of the timeout persisted Error: Navigation Timeout Exceeded: 30000ms exceeded. Changing networkidle to mode 2 resolved the problem again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I want to load another HTML page after a specific amount of time
I have one html page "form1.html" which has an animated image. I want to load another page "form2.html" after 5 seconds. How do...
Read more >
504 Gateway Timeout - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 504 Gateway Timeout server error response code indicates that the server, while acting as a gateway ...
Read more >
How to Fix the 504 Gateway Timeout Error on Your Site - Kinsta
One of the first things you can try when encountering a 504 Gateway Timeout error is to wait a few minutes and try...
Read more >
Window setTimeout() Method - W3Schools
The setTimeout() is executed only once. If you need repeated executions, use setInterval() instead. Use the clearTimeout() method to prevent the function from ......
Read more >
MATLAB urlread - MathWorks
Download the HTML for the page on the MATLAB ® Central File Exchange that ... File Exchange as in the first example, and...
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