Skip to content

client_side_replay: Error pages show "Live page could not be loaded" #999

Description

@ato

Describe the bug

When client_side_replay mode is enabled, viewing a non-404 archived error pages (e.g. status 403 Forbidden) results in a "Live page could not be loaded" error.

Steps to reproduce the bug

jwarc fetch -o test403.warc 'https://httpbun.com/mix/s=403/b64=PGgyPjQwMyByZXNwb25zZSB0ZXN0IHBhc3NlZDwvaDI+/h=content-type:text%2Fhtml'
wb-manager init test
wb-manager add test test403.warc
echo 'client_side_replay: true' > config.yaml
pywb

Open http://localhost:8080/test/20260808010841/https://httpbun.com/mix/s=403/b64=PGgyPjQwMyByZXNwb25zZSB0ZXN0IHBhc3NlZDwvaDI+/h=content-type:text%2Fhtml

Expected behavior

The archived page should be replayed and look the same as client_side_replay: false.

Image

Screenshots

Image

Environment

MacOS

Additional context

This is likely because of this check in wabac.js:

https://github.com/webrecorder/wabac.js/blob/99b919ce483224e96f2be28001a1c05e4fb41a98/src/liveproxy.ts#L159-L166

We probably need to add an option to wabac.js to disable this check and then have pywb enable it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions