undici icon indicating copy to clipboard operation
undici copied to clipboard

avoid containing undici internals in error stacktrace in web api

Open Uzlopak opened this issue 11 months ago • 2 comments

I find it highly confusing, that e.g. when I call .body() on a fetch response and it errors I get all the internal functions in the stacktrace.

This is maybe more about convenience but it makes more sense when using fetch in nodejs... there i want to have e.g. less information about the internals.

Uzlopak avatar Feb 28 '24 01:02 Uzlopak

I kind of recall we have a chat about this in the past along with @KhafraDev and @Ethan-Arrowood but not sure what was the outcome

metcoder95 avatar Feb 28 '24 08:02 metcoder95

I don't remember any previous discussion but the stack trace lying to you doesn't seem like a great idea

KhafraDev avatar Feb 29 '24 05:02 KhafraDev