lquixada / cross-fetch

Universal WHATWG Fetch API for Node, Browsers and React Native.
MIT License
1.66k stars 102 forks source link

logging feature: how could i see detailed logging of the requests that are being done for the purpose of debugging #153

Closed andreidiaconescu closed 1 year ago

andreidiaconescu commented 1 year ago

This would solve... Now when i mage cross-fetch from node 18, i get an error: "fetch failed ... reason: Parse Error: Content-Length can't be present with Transfer-Encoding" without more details, like all headers of requests and response,

The implementation should look like... Maybe a flag could be used to enable detailed logging

lquixada commented 1 year ago

Hi @andreidiaconescu ! thanks for taking the time to open this issue. The purpose of cross-fetch is to serve as a proxy for different environment implementations of the Fetch API spec. It doesn't implement any features.

Since you're having issues on the Node env, I'd suggest reaching out to the node-fetch repo and opening a request there.