Chrome network error · -118 · Connection

ERR_CONNECTION_TIMED_OUT

Chrome tried to open a connection to the website’s server and got no answer at all before it gave up. Packets went out, nothing came back.

Chromium's description

A connection attempt timed out.

Chrome shows it as net::ERR_CONNECTION_TIMED_OUT, error -118. puppeteer and Playwright report the same name when a page fails to load in Chromium.

Common causes

  • The server is down or overloaded and does not accept new connections.
  • A firewall silently drops the connection (it does not reject it, which would be ERR_CONNECTION_REFUSED).
  • The DNS record points to an old or wrong IP address.
  • Your own network, VPN or ISP blocks the site or the port.

How to fix ERR_CONNECTION_TIMED_OUT

  1. Check whether the site is down for everyone, from another network or with the screenshot tool on this page.
  2. Flush your DNS cache and check the IP address the name resolves to.
  3. Turn off VPN or proxy, or try another network.
  4. Site owners: check that the firewall or cloud security group allows ports 80 and 443 from everywhere, and that the server answers on its public IP.

ERR_CONNECTION_TIMED_OUT in the screenshot API

The renderer connects through its own egress proxy, so the API reports a connection that could not be opened as ERR_CONNECTION_FAILED: status 502 with the message The target website could not be loaded (ERR_CONNECTION_FAILED). Not billed. A page that connects but loads too slowly is a different error: 408, The target website took too long to load.

Only the page's own load can fail a render. An image, script or frame of the page that fails with a network error does not: the page is captured as the browser shows it without that resource.

Check whether a website loads

Rendered in a real browser with cookie banners hidden. Takes 5–30 seconds.

Frequently asked questions

What does ERR_CONNECTION_TIMED_OUT mean?

Chrome tried to open a connection to the website’s server and got no answer at all before it gave up. Packets went out, nothing came back.

How do I fix ERR_CONNECTION_TIMED_OUT?

Check whether the site is down for everyone, from another network or with the screenshot tool on this page.

Is a screenshot that fails with ERR_CONNECTION_TIMED_OUT billed?

No. Requests the screenshot API answers with an error are not billed.

Other common errors

All 249 Chrome network errors · Screenshot API errors

Screenshot API

Take screenshots from your code

screenshotbase renders any website in a real browser and returns the image: full page or viewport, any device size, retina, from 100+ countries, with cookie banners and ads hidden.

/v1/take documentation Screenshot API All documentation

300 free screenshots every month. No credit card required.

GET https://api.screenshotbase.com/v1/take?url=https://example.com&full_page=true

# Response: the image (PNG, JPG, WebP or GIF)
curl -G "https://api.screenshotbase.com/v1/take" \
  --data-urlencode "url=https://example.com" \
  -d viewport_width=1280 -d viewport_height=800 \
  -d format=png \
  -H "apikey: YOUR-API-KEY" \
  -o screenshot.png

More free tools

Start using our Screenshot API for free today!

Get 300 requests / month for free