Improved failed request detection

The fail_if_request_failed option now detects matching HTTP 4xx and 5xx responses in addition to browser-level network failures.

Changelog1 min read

Written by

Dmytro Krasun

Published on

ScreenshotOne can now catch more incomplete page loads when you use the fail_if_request_failed option.

Previously, the option detected a matching resource when the browser reported a network-level failure. However, a server or CDN can return an HTTP error response while the browser still considers the network request complete. In that case, a screenshot could be rendered with a missing stylesheet, image, or script.

Now, a rendering request fails when a matching resource either fails at the browser or network level or returns an HTTP status code from 400 through 599.

For example, if a required CSS file from example.com fails to load, the website may be rendered without its layout and styles. You can detect this by matching its CSS requests:

fail_if_request_failed=*example.com/*.css*

ScreenshotOne returns the matched_failed_request error instead of the incorrectly rendered screenshot when the pattern matches a failed CSS request. Your integration can retry the API request and treat repeated failures as a persistent website problem. ScreenshotOne does not perform this retry automatically.

Read more about matching failed requests in the documentation.

Read more product updates

New features, bug fixes, and optimizations...

View all product updates
Use cases in the ScreenshotOne playground

Use cases in the ScreenshotOne playground

Having documentation and code examples is great, but not enough to allow developers to quickly integrate the API and assess all available features of the ScreenshotOne API.

Read more

1 min read

Improved full-page screenshot rendering

Improved full-page screenshot rendering

Fixed a few issues related to full-page screenshots rendering.

Read more

1 min read

Improved uploading and error handling to S3-compatible storage

Improved uploading and error handling to S3-compatible storage

Today, the new version of ScreenshotOne API was deployed to production that enables a retries mechanism when uploading to an S3 storage and more granular error handling.

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.