firefox-devtools / bidi-har-export

Experimental module to compile WebDriver BiDi network events as a HAR file
7 stars 3 forks source link

Safer check if there's missmatch for the entry? #9

Closed soulgalore closed 6 months ago

soulgalore commented 1 year ago

Hi!

I can not reproduce this every time, but it has happened couple of times, especially when I access multiple pages after each other in Browsertime:

/Users/peter/git/browsertime/node_modules/ff-test-bidi-har-export/src/har-recorder.js:357
    entry.request = params.request;
                  ^
TypeError: Cannot set properties of undefined (setting 'request')

Thinking maybe if there's no match that can just be swallowed, or do you see it as root problem it should be solved?