MisterPhilip / omnibug

Omnibug is an extension for Firefox and most Chromium-based browsers to ease implementing and debugging digital marketing tools.
https://omnibug.io/
MIT License
95 stars 42 forks source link

Ping requests do not parse POST data #213

Open MisterPhilip opened 1 year ago

MisterPhilip commented 1 year ago

Requests that are ping and use POST requests return this for the POST body: requestBody: {error: 'Unknown error.'}

Logged (old) bug: https://bugs.chromium.org/p/chromium/issues/detail?id=976174

Currently no easy workaround.

MisterPhilip commented 1 month ago

Potential solution would be to use devtools.network.onRequestFinished in the devtools panel instead of having it in the service worker. However, this only fires when the request is complete; slow loading requests may not show in the correct order or may not show at all if the user leaves too quickly. It'd be nice to migrate to this API to reduce unnecessary service worker events when devtools is not open but more testing needs to be done...