Skip to content

Commit 760efad

Browse files
Ignore entries with requestTime 0
1 parent 542ca40 commit 760efad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/har-recorder.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ class HarRecorder {
225225
continue;
226226
}
227227

228+
if (networkEntry.request.timings.requestTime == 0) {
229+
this._log(
230+
`Warning: Ignoring entry with invalid requestTime for url: ${networkEntry.url} (id: ${networkEntry.id})`,
231+
);
232+
continue;
233+
}
234+
228235
const entry = this._toHAREntry(networkEntry);
229236
for (const page of recording.log.pages) {
230237
if (page.startedTime <= entry.startedTime) {

0 commit comments

Comments
 (0)