This isn't true, the request succeeded. If you run with launch(devtools=True) then you can see the very request in the devtools and that it did succeed.
However, this time I think it's different as instead of talking about a Page.goto call, it's a request initiated by the page. There was justification in #31570 that a failure of navigation could be technically correct as no navigation takes place, but for a request initiated by a page, I do not think that a requestfailed event is correct.
In my use case, I monitor the requests that a site makes on load for privacy assessment. It's important to know whether a request was actually made or whether it happened to failed.
Version
1.47
Steps to reproduce
server for serving HTML (doesn't matter how, just an example):
repro:
Expected behavior
No output from the script. There are no requests that have failed.
Actual behavior
This isn't true, the request succeeded. If you run with
launch(devtools=True)
then you can see the very request in the devtools and that it did succeed.Additional context
Similar to https://github.com/microsoft/playwright/issues/26897, https://github.com/microsoft/playwright/issues/31570
However, this time I think it's different as instead of talking about a Page.goto call, it's a request initiated by the page. There was justification in #31570 that a failure of navigation could be technically correct as no navigation takes place, but for a request initiated by a page, I do not think that a requestfailed event is correct.
In my use case, I monitor the requests that a site makes on load for privacy assessment. It's important to know whether a request was actually made or whether it happened to failed.
Environment