Closed mkg20001 closed 3 years ago
Can you give me an example that shows the issue with the current version of the library?
Oh that might explain why i have so much null
errors that are reported on Sentry, but i have never been able to reproduce the scenario that throws a null
error because of course i don't have stacktraces
Can you give me an example that shows the issue with the current version of the library?
Unfortunately there is not much informations : https://sentry.io/share/issue/9575ef1ba0a2479b8f11c5604e6f6d47
It could be totally not related to IDB but i use IDB 5.0.4
and it seems to happen a lot on Chrome Mobile iOS, Safari and Firefox, never on Chrome.
I have finally found the source of the null
error and this is absolutely not related with idb, it was just an error thrown by a third party script badly handled because the error is not fully reported to avoid leaks : https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#notes
Sincerely sorry for the mislead.
Hah no worries!
When adding a duplicate key the tx.error was null but
tx.srcElement.error
wasn'tThis PR reads it from there if it fails there instead
A long-term solution would be to check for srcElement/target .onerror as well as tx.onerror