HTTPError causes structured cloning algorithm to throw #48
Labels
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P3
Low: Not priority right now
I have quite a bit time figuring out why some of the tests were failing (in ipfs/js-ipfs#3081) on Firefox. Turns out structured clone algorithm throws when
HTTError
is being posted over message channeljs-ipfs-utils/src/http.js
Lines 21 to 27 in 4cc3826
There are multiple issues:
response: Response
still creates an issue.I'm not sure what the appropriate course of action would be here, but here are few options:
response
non-enumerable property, which would be ignored.Response
instance extendHTTPError
to include relevant data e.g:The text was updated successfully, but these errors were encountered: