More consistent handling of error responses

Ignoring host errors now works the same whether a site returns an error page or an empty response, and the site's status is always reported.

Changelog1 min read

Written by

Dmytro Krasun

Published on

To make the API behave more consistently, an empty error response from a website is now handled like an error page with content.

Before, the result depended on whether the site sent a page with its error. With ignore_host_errors=true, an error page with content returned a screenshot, but an error status with an empty response, for example, a 429 from a rate limiter, failed with the internal_application_error error.

What changed

  • With ignore_host_errors=true, an empty error response now returns a screenshot too: the browser’s own error page, for example, “This page isn’t working” with “HTTP ERROR 429”. Like any other screenshot of an error page, it counts toward your quota.
  • Without ignore_host_errors, an empty error response returns the host_returned_error error with the site’s status in returned_status_code, like any other error status. This now also applies when the page navigates to an empty error response by itself after it loads, which failed with an internal error before.
  • Request logs now show the site’s status for screenshots of error pages and for asynchronous requests that fail with host_returned_error.
  • Improved: metadata_http_response_status_code now returns the site’s status code even when you don’t also request metadata_http_response_headers. Both options now describe the page in the result, including when the page navigated to another page after it loaded.

If you don’t need screenshots of error pages, keep ignore_host_errors off. The API then returns the error, and failed requests don’t count toward your quota.

If you have any questions, please contact support@screenshotone.com.

Read more product updates

New features, bug fixes, and optimizations...

View all product updates
Improved errors

Improved errors

Now, errors will have relevant documentation links. It will be also possible to see why some requests failed in the dashboard and get recommendations on how to address the issue.

Read more

1 min read

Better organization invitations

Better organization invitations

Organization invitations are now easier to notice and respond to in the dashboard.

Read more

1 min read

Update your company information in the dashboard

Update your company information in the dashboard

Starting today, you can update your company information in the dashboard. It includes updating the address, tax number, company number, and company name.

Read more

1 min read

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.